bookclerk_library::entities::discover_request_queue
SeaORM entity for the discover_request_queue table.
| Item | Kind | Summary |
|---|---|---|
Model |
struct | The stored taste ranking of one entry of the shared request queue (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 owned: i64,
pub taste_score: f64,
pub reasons_json: String,
pub ranked_at: String,
}
The stored taste ranking of one entry of the shared request queue
(DeriveEntityModel).
The row holds only what the ranking job computed. Titles, covers, wish
counts and wishers stay on the open title_requests rows and are joined
when the queue is read, so a new wish shows at once and nothing here
copies catalog metadata.
Fields
work_id: The work (works.id) the entry's wishes are for; one row per work.owned: 1 when the library already holds the entry's work, so the queue hides it.taste_score: Household taste score of the entry before the wish-count boost (finite; 0 when nothing in the library matches it).reasons_json: Taste reasons as a JSON array of strings; wish-count reasons are added at read time.ranked_at: RFC 3339 timestamp of the ranking pass that wrote the row.
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 owned: ActiveValue<i64>,
pub taste_score: ActiveValue<f64>,
pub reasons_json: ActiveValue<String>,
pub ranked_at: ActiveValue<String>,
}
Generated by sea-orm-macros
Fields
work_id: Generated by sea-orm-macrosowned: Generated by sea-orm-macrostaste_score: Generated by sea-orm-macrosreasons_json: Generated by sea-orm-macrosranked_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 {
WorkId,
Owned,
TasteScore,
ReasonsJson,
RankedAt,
}
Generated by sea-orm-macros
Variants
WorkId: Generated by sea-orm-macrosOwned: Generated by sea-orm-macrosTasteScore: Generated by sea-orm-macrosReasonsJson: Generated by sea-orm-macrosRankedAt: Generated by sea-orm-macros
Implements: Clone, ColumnTrait, Copy, Debug, FromStr, Iden, IdenStatic, IntoEnumIterator
pub enum PrimaryKey {
WorkId,
}
Generated by sea-orm-macros
Variants
WorkId: 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