bookclerk_library::entities::discover_request_queue

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

Last updated View as Markdown

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).

Structs

Model

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.

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 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-macros
  • owned: Generated by sea-orm-macros
  • taste_score: Generated by sea-orm-macros
  • reasons_json: Generated by sea-orm-macros
  • ranked_at: 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,
    Owned,
    TasteScore,
    ReasonsJson,
    RankedAt,
}

Generated by sea-orm-macros

Variants

  • WorkId: Generated by sea-orm-macros
  • Owned: Generated by sea-orm-macros
  • TasteScore: Generated by sea-orm-macros
  • ReasonsJson: Generated by sea-orm-macros
  • RankedAt: Generated by sea-orm-macros

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

PrimaryKey

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

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