bookclerk_library::entities::library_work_facets
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). |
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 asgenre.key: The value lower-cased, which a filter matches.value: The value as the library shows it.
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>
pub struct ColumnIter {
/* private fields */
}
An iterator over the variants of Column
Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator
pub struct Entity;
Generated by sea-orm-macros
Implements: Clone, Copy, Debug, Default, EntityName, EntityTrait, Iden, IdenStatic
pub struct PrimaryKeyIter {
/* private fields */
}
An iterator over the variants of PrimaryKey
Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator
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-macrosfacet: Generated by sea-orm-macroskey: Generated by sea-orm-macrosvalue: Generated by sea-orm-macros
Implements: ActiveModelBehavior, ActiveModelTrait, Clone, Debug, Default, From<Model>, IntoActiveModel<ActiveModel>, PartialEq, TryFrom<ActiveModel>, TryIntoModel<Model>
pub struct RelationIter {
/* private fields */
}
An iterator over the variants of Relation
Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator
pub enum Column {
WorkId,
Facet,
Key,
Value,
}
Generated by sea-orm-macros
Variants
WorkId: Generated by sea-orm-macrosFacet: Generated by sea-orm-macrosKey: Generated by sea-orm-macrosValue: Generated by sea-orm-macros
Implements: Clone, ColumnTrait, Copy, Debug, FromStr, Iden, IdenStatic, IntoEnumIterator
pub enum PrimaryKey {
WorkId,
Facet,
Key,
}
Generated by sea-orm-macros
Variants
WorkId: Generated by sea-orm-macrosFacet: Generated by sea-orm-macrosKey: Generated by sea-orm-macros
Implements: Clone, Copy, Debug, Iden, IdenStatic, IntoEnumIterator, PrimaryKeyToColumn, PrimaryKeyTrait
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