bookclerk_library::entities::notify_destinations

Development These docs follow the development version and change with every merge.

Last updated View as Markdown

SeaORM entity for notify_destinations: where one notifier instance sends, either a library channel or one patron's personal address.

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).

Structs

Model

pub struct Model {
    pub id: String,
    pub plugin_instance_id: String,
    pub kind: String,
    pub user_id: Option<i64>,
    pub label: String,
    pub address_json: String,
    pub failure_count: i64,
    pub paused_at: Option<String>,
    pub paused_reason: Option<String>,
    pub created_at: String,
    pub updated_at: String,
}

Row shape for this table (DeriveEntityModel).

Fields

  • id: Random UUID; the destinationId the notifier sees.
  • plugin_instance_id: Notifier plugin instance that sends to this destination.
  • kind: channel or personal.
  • user_id: Patron who owns a personal destination; None for a channel.
  • label: Name shown to administrators or the patron; never a secret.
  • address_json: Canonical address document of a personal destination; empty for a channel. May hold secrets, so it is never logged.
  • failure_count: Permanent send failures since the last delivery.
  • paused_at: RFC 3339 time the destination was paused; None while active.
  • paused_reason: Why it was paused (the last failure reason).
  • created_at: RFC 3339 creation time.
  • updated_at: RFC 3339 time of the last write.

Model::into_ex

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>

ColumnIter

pub struct ColumnIter {
    /* private fields */
}

An iterator over the variants of Column

Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator

Entity

pub struct Entity;

Generated by sea-orm-macros

Implements: Clone, Copy, Debug, Default, EntityName, EntityTrait, Iden, IdenStatic

PrimaryKeyIter

pub struct PrimaryKeyIter {
    /* private fields */
}

An iterator over the variants of PrimaryKey

Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator

ActiveModel

pub struct ActiveModel {
    pub id: ActiveValue<String>,
    pub plugin_instance_id: ActiveValue<String>,
    pub kind: ActiveValue<String>,
    pub user_id: ActiveValue<Option<i64>>,
    pub label: ActiveValue<String>,
    pub address_json: ActiveValue<String>,
    pub failure_count: ActiveValue<i64>,
    pub paused_at: ActiveValue<Option<String>>,
    pub paused_reason: ActiveValue<Option<String>>,
    pub created_at: ActiveValue<String>,
    pub updated_at: ActiveValue<String>,
}

Generated by sea-orm-macros

Fields

  • id: Generated by sea-orm-macros
  • plugin_instance_id: Generated by sea-orm-macros
  • kind: Generated by sea-orm-macros
  • user_id: Generated by sea-orm-macros
  • label: Generated by sea-orm-macros
  • address_json: Generated by sea-orm-macros
  • failure_count: Generated by sea-orm-macros
  • paused_at: Generated by sea-orm-macros
  • paused_reason: Generated by sea-orm-macros
  • created_at: Generated by sea-orm-macros
  • updated_at: Generated by sea-orm-macros

Implements: ActiveModelBehavior, ActiveModelTrait, Clone, Debug, Default, From<Model>, IntoActiveModel<ActiveModel>, PartialEq, TryFrom<ActiveModel>, TryIntoModel<Model>

RelationIter

pub struct RelationIter {
    /* private fields */
}

An iterator over the variants of Relation

Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator

Enums

Column

pub enum Column {
    Id,
    PluginInstanceId,
    Kind,
    UserId,
    Label,
    AddressJson,
    FailureCount,
    PausedAt,
    PausedReason,
    CreatedAt,
    UpdatedAt,
}

Generated by sea-orm-macros

Variants

  • Id: Generated by sea-orm-macros
  • PluginInstanceId: Generated by sea-orm-macros
  • Kind: Generated by sea-orm-macros
  • UserId: Generated by sea-orm-macros
  • Label: Generated by sea-orm-macros
  • AddressJson: Generated by sea-orm-macros
  • FailureCount: Generated by sea-orm-macros
  • PausedAt: Generated by sea-orm-macros
  • PausedReason: Generated by sea-orm-macros
  • CreatedAt: Generated by sea-orm-macros
  • UpdatedAt: Generated by sea-orm-macros

Implements: Clone, ColumnTrait, Copy, Debug, FromStr, Iden, IdenStatic, IntoEnumIterator

PrimaryKey

pub enum PrimaryKey {
    Id,
}

Generated by sea-orm-macros

Variants

  • Id: Generated by sea-orm-macros

Implements: Clone, Copy, Debug, Iden, IdenStatic, IntoEnumIterator, PrimaryKeyToColumn, PrimaryKeyTrait

Relation

pub enum Relation {}

Declared SeaORM relations (none).

Implements: Clone, Copy, Debug, IntoEnumIterator, RelationTrait

Generated from crates/bookclerk-library at main · View as Markdown