bookclerk_library::entities::library_work_facets

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

Last updated View as Markdown

SeaORM entity for library_work_facets: the page index's filter values.

One row per value a held top-level work has under a facet (author, narrator, series, genre, publisher or source), written with the work's library_work_rows row by crate::LibraryStore::refresh_library_works.

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 work_id: String,
    pub facet: String,
    pub key: String,
    pub value: String,
}

Row shape for this table (DeriveEntityModel).

Fields

  • work_id: The work (works.id); a top-level work, never a podcast episode.
  • facet: The facet (WorkFacet::as_str), such as genre.
  • key: The value lower-cased, which a filter matches.
  • value: The value as the library shows it.

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 work_id: ActiveValue<String>,
    pub facet: ActiveValue<String>,
    pub key: ActiveValue<String>,
    pub value: ActiveValue<String>,
}

Generated by sea-orm-macros

Fields

  • work_id: Generated by sea-orm-macros
  • facet: Generated by sea-orm-macros
  • key: Generated by sea-orm-macros
  • value: 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 {
    WorkId,
    Facet,
    Key,
    Value,
}

Generated by sea-orm-macros

Variants

  • WorkId: Generated by sea-orm-macros
  • Facet: Generated by sea-orm-macros
  • Key: Generated by sea-orm-macros
  • Value: Generated by sea-orm-macros

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

PrimaryKey

pub enum PrimaryKey {
    WorkId,
    Facet,
    Key,
}

Generated by sea-orm-macros

Variants

  • WorkId: Generated by sea-orm-macros
  • Facet: Generated by sea-orm-macros
  • Key: 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