bookclerk_library::entities::chapter_list_entries

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

Last updated View as Markdown

SeaORM entity for chapter_list_entries: one chapter of a stored chapter list (chapter_lists), in pre-order.

Item Kind Summary
Model struct Row shape for one chapter of a stored 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 position: i64,
    pub start_ms: i64,
    pub depth: i64,
    pub title: String,
}

Row shape for one chapter of a stored list.

Fields

  • digest: The list's digest (chapter_lists.digest).
  • position: The chapter's place in the list, from 0.
  • start_ms: Start, in milliseconds from the start of the edition's timeline.
  • depth: Nesting depth; 0 for a top-level chapter.
  • title: Chapter title; never empty.

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 position: ActiveValue<i64>,
    pub start_ms: ActiveValue<i64>,
    pub depth: ActiveValue<i64>,
    pub title: ActiveValue<String>,
}

Generated by sea-orm-macros

Fields

  • digest: Generated by sea-orm-macros
  • position: Generated by sea-orm-macros
  • start_ms: Generated by sea-orm-macros
  • depth: Generated by sea-orm-macros
  • title: 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,
    Position,
    StartMs,
    Depth,
    Title,
}

Generated by sea-orm-macros

Variants

  • Digest: Generated by sea-orm-macros
  • Position: Generated by sea-orm-macros
  • StartMs: Generated by sea-orm-macros
  • Depth: Generated by sea-orm-macros
  • Title: Generated by sea-orm-macros

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

PrimaryKey

pub enum PrimaryKey {
    Digest,
    Position,
}

Generated by sea-orm-macros

Variants

  • Digest: Generated by sea-orm-macros
  • Position: 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