bookclerk_library::entities::patron_scope_keys
SeaORM entity for the patron_scope_keys table: the include and exclude
values of a patron scope as rows, so the Library filter joins them
instead of binding one parameter per rule.
| Item | Kind | Summary |
|---|---|---|
Model |
struct | One value of one scope. Rows are keyed by the content id of the whole value set (crate::store::library_index::WorkScope::key_set_id), so a set's rows never change once written and any scope with the same values shares them. |
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). |
pub struct Model {
pub scope_hash: String,
pub effect: String,
pub facet: String,
pub key: String,
}
One value of one scope. Rows are keyed by the content id of the whole
value set (crate::store::library_index::WorkScope::key_set_id), so a
set's rows never change once written and any scope with the same values
shares them.
Fields
scope_hash: Content id of the value set: lowercase hex SHA-256.effect:includeorexclude.facet: The page index facet (library_work_facets.facet).key: The facet key (library_work_facets.key).
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 scope_hash: ActiveValue<String>,
pub effect: ActiveValue<String>,
pub facet: ActiveValue<String>,
pub key: ActiveValue<String>,
}
Generated by sea-orm-macros
Fields
scope_hash: Generated by sea-orm-macroseffect: Generated by sea-orm-macrosfacet: Generated by sea-orm-macroskey: 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 {
ScopeHash,
Effect,
Facet,
Key,
}
Generated by sea-orm-macros
Variants
ScopeHash: Generated by sea-orm-macrosEffect: Generated by sea-orm-macrosFacet: Generated by sea-orm-macrosKey: Generated by sea-orm-macros
Implements: Clone, ColumnTrait, Copy, Debug, FromStr, Iden, IdenStatic, IntoEnumIterator
pub enum PrimaryKey {
ScopeHash,
Effect,
Facet,
Key,
}
Generated by sea-orm-macros
Variants
ScopeHash: Generated by sea-orm-macrosEffect: 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).
Implements: Clone, Copy, Debug, IntoEnumIterator, RelationTrait
Generated from crates/bookclerk-library at main · View as Markdown