bookclerk_library::entities::chapter_lists

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

Last updated View as Markdown

SeaORM entity for chapter_lists: one stored chapter list, named by its digest. Written by crate::LibraryStore's chapter methods (store::chapters) after every entry of the list.

Item Kind Summary
Model struct Row shape for one stored chapter list.
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 digest: String,
    pub chapter_count: i64,
    pub created_at: String,
}

Row shape for one stored chapter list.

Fields

  • digest: Lower-case hex SHA-256 of the list's canonical encoding.
  • chapter_count: How many entries the list has (chapter_list_entries rows).
  • created_at: RFC 3339 time the list was first stored.

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 digest: ActiveValue<String>,
    pub chapter_count: ActiveValue<i64>,
    pub created_at: ActiveValue<String>,
}

Generated by sea-orm-macros

Fields

  • digest: Generated by sea-orm-macros
  • chapter_count: Generated by sea-orm-macros
  • created_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 {
    Digest,
    ChapterCount,
    CreatedAt,
}

Generated by sea-orm-macros

Variants

  • Digest: Generated by sea-orm-macros
  • ChapterCount: Generated by sea-orm-macros
  • CreatedAt: Generated by sea-orm-macros

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

PrimaryKey

pub enum PrimaryKey {
    Digest,
}

Generated by sea-orm-macros

Variants

  • Digest: 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