bookclerk_library::entities::resolution_overrides

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

Last updated View as Markdown

SeaORM entity for the resolution_overrides table (composite primary key).

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 unless FK edges are modeled).

Structs

Model

pub struct Model {
    pub subject_kind: String,
    pub subject_id: String,
    pub action: String,
    pub target_id: Option<String>,
    pub created_by_user_id: Option<i64>,
    pub created_at: String,
    pub revision: String,
}

Row shape for this table (DeriveEntityModel).

Fields

  • subject_kind: listing or work.
  • subject_id: Id of the listing or work.
  • action: pin_edition (with target_id) or isolate.
  • target_id: The edition a pinned listing sells.
  • created_by_user_id: Administrator who made the decision.
  • created_at: RFC 3339 timestamp when the row was inserted.
  • revision: Id of this write of the row (a UUID), new each time the decision is made again; empty for rows written before revisions.

Model::into_ex

pub fn into_ex(self) -> Self

Generated by sea-orm-macros

Implements: Clone, Debug, 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 subject_kind: ActiveValue<String>,
    pub subject_id: ActiveValue<String>,
    pub action: ActiveValue<String>,
    pub target_id: ActiveValue<Option<String>>,
    pub created_by_user_id: ActiveValue<Option<i64>>,
    pub created_at: ActiveValue<String>,
    pub revision: ActiveValue<String>,
}

Generated by sea-orm-macros

Fields

  • subject_kind: Generated by sea-orm-macros
  • subject_id: Generated by sea-orm-macros
  • action: Generated by sea-orm-macros
  • target_id: Generated by sea-orm-macros
  • created_by_user_id: Generated by sea-orm-macros
  • created_at: Generated by sea-orm-macros
  • revision: 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 {
    SubjectKind,
    SubjectId,
    Action,
    TargetId,
    CreatedByUserId,
    CreatedAt,
    Revision,
}

Generated by sea-orm-macros

Variants

  • SubjectKind: Generated by sea-orm-macros
  • SubjectId: Generated by sea-orm-macros
  • Action: Generated by sea-orm-macros
  • TargetId: Generated by sea-orm-macros
  • CreatedByUserId: Generated by sea-orm-macros
  • CreatedAt: Generated by sea-orm-macros
  • Revision: Generated by sea-orm-macros

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

PrimaryKey

pub enum PrimaryKey {
    SubjectKind,
    SubjectId,
}

Generated by sea-orm-macros

Variants

  • SubjectKind: Generated by sea-orm-macros
  • SubjectId: Generated by sea-orm-macros

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

Relation

pub enum Relation {}

Declared SeaORM relations (none unless FK edges are modeled).

Implements: Clone, Copy, Debug, IntoEnumIterator, RelationTrait

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