bookclerk_library::entities::user_preferences
SeaORM entity for the user_preferences table.
| 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 id: i64,
pub subject_key: String,
pub identity_id: Option<i64>,
pub default_view: String,
pub disabled_shelves_json: String,
pub discover_sort: String,
pub discover_sort_dir: String,
pub discover_language: Option<String>,
pub discover_excluded_sources_json: String,
pub theme: String,
pub updated_at: String,
}
Row shape for this table (DeriveEntityModel).
Fields
id: Surrogate primary key assigned by the database.subject_key: Preference subject key (operator,user:<id>, portal key).identity_id: Foreign key toportal_identities.id.default_view: Preferred library SPA view identifier (for examplegridorlist).disabled_shelves_json: JSON list of shelf ids hidden in the UI.discover_sort: Preferred Discover sort column (for exampletitleoradded).discover_sort_dir: Discover sort direction (asc/desc).discover_language: BCP-47 language code used to filter Discover results, when set.discover_excluded_sources_json: JSON list of storefronts excluded from Discover.theme: Appearance preference (system,light, ordark).updated_at: RFC 3339 timestamp when the row was last modified.
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>
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 id: ActiveValue<i64>,
pub subject_key: ActiveValue<String>,
pub identity_id: ActiveValue<Option<i64>>,
pub default_view: ActiveValue<String>,
pub disabled_shelves_json: ActiveValue<String>,
pub discover_sort: ActiveValue<String>,
pub discover_sort_dir: ActiveValue<String>,
pub discover_language: ActiveValue<Option<String>>,
pub discover_excluded_sources_json: ActiveValue<String>,
pub theme: ActiveValue<String>,
pub updated_at: ActiveValue<String>,
}
Generated by sea-orm-macros
Fields
id: Generated by sea-orm-macrossubject_key: Generated by sea-orm-macrosidentity_id: Generated by sea-orm-macrosdefault_view: Generated by sea-orm-macrosdisabled_shelves_json: Generated by sea-orm-macrosdiscover_sort: Generated by sea-orm-macrosdiscover_sort_dir: Generated by sea-orm-macrosdiscover_language: Generated by sea-orm-macrosdiscover_excluded_sources_json: Generated by sea-orm-macrostheme: Generated by sea-orm-macrosupdated_at: 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 {
Id,
SubjectKey,
IdentityId,
DefaultView,
DisabledShelvesJson,
DiscoverSort,
DiscoverSortDir,
DiscoverLanguage,
DiscoverExcludedSourcesJson,
Theme,
UpdatedAt,
}
Generated by sea-orm-macros
Variants
Id: Generated by sea-orm-macrosSubjectKey: Generated by sea-orm-macrosIdentityId: Generated by sea-orm-macrosDefaultView: Generated by sea-orm-macrosDisabledShelvesJson: Generated by sea-orm-macrosDiscoverSort: Generated by sea-orm-macrosDiscoverSortDir: Generated by sea-orm-macrosDiscoverLanguage: Generated by sea-orm-macrosDiscoverExcludedSourcesJson: Generated by sea-orm-macrosTheme: Generated by sea-orm-macrosUpdatedAt: Generated by sea-orm-macros
Implements: Clone, ColumnTrait, Copy, Debug, FromStr, Iden, IdenStatic, IntoEnumIterator
pub enum PrimaryKey {
Id,
}
Generated by sea-orm-macros
Variants
Id: 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