bookclerk_library::entities::plugin_webhooks
SeaORM entity for plugin_webhooks: one inbound webhook of one plugin
instance, with its URL token (storage destinations ADR,
docs/adr/storage-destinations.md, decision 6).
| Item | Kind | Summary |
|---|---|---|
Model |
struct | Row shape for this table (DeriveEntityModel). |
ColumnIter |
struct | An iterator over the variants of [Column] |
Entity |
struct | Generated by sea-orm-macros |
PrimaryKeyIter |
struct | An iterator over the variants of [PrimaryKey] |
ActiveModel |
struct | Generated by sea-orm-macros |
RelationIter |
struct | An iterator over the variants of [Relation] |
Column |
enum | Generated by sea-orm-macros |
PrimaryKey |
enum | Generated by sea-orm-macros |
Relation |
enum | Declared SeaORM relations (none). |
pub struct Model {
pub instance_id: String,
pub name: String,
pub token_hash: String,
pub token_sealed: String,
pub token_nonce: String,
pub missed: i64,
pub created_at: String,
}
Row shape for this table (DeriveEntityModel).
Fields
instance_id: Owning plugin instance id.name:[[webhooks]]name.token_hash: Lowercase hex SHA-256 of the URL token; the public route looks the webhook up by it.token_sealed: The URL token sealed with the library key, base64.token_nonce: Seal nonce, base64.missed: 1 when a request was dropped since the last pull, else 0.created_at: RFC 3339 time the token was minted.
pub fn into_ex(self) -> Self
Generated by sea-orm-macros
Implements: Clone, Debug, Eq, From<Model>, FromQueryResult, IntoActiveModel<ActiveModel>, ModelTrait, PartialEq, TryFrom<ActiveModel>, TryIntoModel<Model>
pub struct ColumnIter {
/* private fields */
}
An iterator over the variants of Column
Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator
pub struct Entity;
Generated by sea-orm-macros
Implements: Clone, Copy, Debug, Default, EntityName, EntityTrait, Iden, IdenStatic
pub struct PrimaryKeyIter {
/* private fields */
}
An iterator over the variants of PrimaryKey
Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator
pub struct ActiveModel {
pub instance_id: ActiveValue<String>,
pub name: ActiveValue<String>,
pub token_hash: ActiveValue<String>,
pub token_sealed: ActiveValue<String>,
pub token_nonce: ActiveValue<String>,
pub missed: ActiveValue<i64>,
pub created_at: ActiveValue<String>,
}
Generated by sea-orm-macros
Fields
instance_id: Generated by sea-orm-macrosname: Generated by sea-orm-macrostoken_hash: Generated by sea-orm-macrostoken_sealed: Generated by sea-orm-macrostoken_nonce: Generated by sea-orm-macrosmissed: Generated by sea-orm-macroscreated_at: Generated by sea-orm-macros
Implements: ActiveModelBehavior, ActiveModelTrait, Clone, Debug, Default, From<Model>, IntoActiveModel<ActiveModel>, PartialEq, TryFrom<ActiveModel>, TryIntoModel<Model>
pub struct RelationIter {
/* private fields */
}
An iterator over the variants of Relation
Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator
pub enum Column {
InstanceId,
Name,
TokenHash,
TokenSealed,
TokenNonce,
Missed,
CreatedAt,
}
Generated by sea-orm-macros
Variants
InstanceId: Generated by sea-orm-macrosName: Generated by sea-orm-macrosTokenHash: Generated by sea-orm-macrosTokenSealed: Generated by sea-orm-macrosTokenNonce: Generated by sea-orm-macrosMissed: Generated by sea-orm-macrosCreatedAt: Generated by sea-orm-macros
Implements: Clone, ColumnTrait, Copy, Debug, FromStr, Iden, IdenStatic, IntoEnumIterator
pub enum PrimaryKey {
InstanceId,
Name,
}
Generated by sea-orm-macros
Variants
InstanceId: Generated by sea-orm-macrosName: Generated by sea-orm-macros
Implements: Clone, Copy, Debug, Iden, IdenStatic, IntoEnumIterator, PrimaryKeyToColumn, PrimaryKeyTrait
pub enum Relation {}
Declared SeaORM relations (none).
Implements: Clone, Copy, Debug, IntoEnumIterator, RelationTrait
Generated from crates/bookclerk-library at main · View as Markdown