bookclerk_library::entities::store_listings

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

Last updated View as Markdown

SeaORM entity for the store_listings table (text primary key).

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

Structs

Model

pub struct Model {
    pub id: String,
    pub plugin_key: String,
    pub marketplace: String,
    pub product_id: String,
    pub edition_id: String,
    pub title: String,
    pub categories: Option<String>,
    pub subtitle: Option<String>,
    pub authors: Option<String>,
    pub narrators: Option<String>,
    pub series: Option<String>,
    pub series_index: Option<String>,
    pub series_product_id: Option<String>,
    pub description: Option<String>,
    pub publisher: Option<String>,
    pub published_at: Option<String>,
    pub length_minutes: Option<i64>,
    pub language: Option<String>,
    pub cover_url: Option<String>,
    pub url: Option<String>,
    pub rating_overall: Option<f64>,
    pub rating_count: Option<i64>,
    pub is_abridged: Option<i64>,
    pub is_explicit: Option<i64>,
    pub observed_at: String,
    pub created_at: String,
    pub updated_at: String,
}

Row shape for this table (DeriveEntityModel).

Fields

  • id: Listing id (a random UUID).
  • plugin_key: Provenance-qualified PluginKey of the storefront.
  • marketplace: Lower-cased marketplace.
  • product_id: The store's own product id.
  • edition_id: The edition it sells.
  • title: Title as the store lists it.
  • categories: Store category labels when reported.
  • subtitle: Subtitle as the store lists it.
  • authors: Authors as the store credits them, comma-separated, for display. Work identity comes from the resolver's credits, never from this.
  • narrators: Narrators as the store credits them, comma-separated, for display.
  • series: Series name as the store lists it.
  • series_index: Position in that series as the store writes it (1, 2.5).
  • series_product_id: The store's product id for the series or podcast show (an Audible series ASIN), when it reports one.
  • description: The store's synopsis, kept whole (may contain HTML).
  • publisher: Publisher or imprint as the store lists it.
  • published_at: Publication date as the store reports it.
  • length_minutes: Runtime in whole minutes.
  • language: Language code the store reports (en, de).
  • cover_url: HTTPS cover image URL from the store.
  • url: The store's product page URL.
  • rating_overall: The store's community rating (0 to 5).
  • rating_count: How many ratings back Self::rating_overall.
  • is_abridged: 1 when the store marks it abridged, 0 unabridged, null unknown.
  • is_explicit: 1 when the store marks it explicit (adult) content, 0 clean, null unknown.
  • observed_at: RFC 3339 time of the latest scan or catalog answer that reported it.
  • created_at: RFC 3339 timestamp when the row was inserted.
  • updated_at: RFC 3339 timestamp when the row was last modified.

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 id: ActiveValue<String>,
    pub plugin_key: ActiveValue<String>,
    pub marketplace: ActiveValue<String>,
    pub product_id: ActiveValue<String>,
    pub edition_id: ActiveValue<String>,
    pub title: ActiveValue<String>,
    pub categories: ActiveValue<Option<String>>,
    pub subtitle: ActiveValue<Option<String>>,
    pub authors: ActiveValue<Option<String>>,
    pub narrators: ActiveValue<Option<String>>,
    pub series: ActiveValue<Option<String>>,
    pub series_index: ActiveValue<Option<String>>,
    pub series_product_id: ActiveValue<Option<String>>,
    pub description: ActiveValue<Option<String>>,
    pub publisher: ActiveValue<Option<String>>,
    pub published_at: ActiveValue<Option<String>>,
    pub length_minutes: ActiveValue<Option<i64>>,
    pub language: ActiveValue<Option<String>>,
    pub cover_url: ActiveValue<Option<String>>,
    pub url: ActiveValue<Option<String>>,
    pub rating_overall: ActiveValue<Option<f64>>,
    pub rating_count: ActiveValue<Option<i64>>,
    pub is_abridged: ActiveValue<Option<i64>>,
    pub is_explicit: ActiveValue<Option<i64>>,
    pub observed_at: ActiveValue<String>,
    pub created_at: ActiveValue<String>,
    pub updated_at: ActiveValue<String>,
}

Generated by sea-orm-macros

Fields

  • id: Generated by sea-orm-macros
  • plugin_key: Generated by sea-orm-macros
  • marketplace: Generated by sea-orm-macros
  • product_id: Generated by sea-orm-macros
  • edition_id: Generated by sea-orm-macros
  • title: Generated by sea-orm-macros
  • categories: Generated by sea-orm-macros
  • subtitle: Generated by sea-orm-macros
  • authors: Generated by sea-orm-macros
  • narrators: Generated by sea-orm-macros
  • series: Generated by sea-orm-macros
  • series_index: Generated by sea-orm-macros
  • series_product_id: Generated by sea-orm-macros
  • description: Generated by sea-orm-macros
  • publisher: Generated by sea-orm-macros
  • published_at: Generated by sea-orm-macros
  • length_minutes: Generated by sea-orm-macros
  • language: Generated by sea-orm-macros
  • cover_url: Generated by sea-orm-macros
  • url: Generated by sea-orm-macros
  • rating_overall: Generated by sea-orm-macros
  • rating_count: Generated by sea-orm-macros
  • is_abridged: Generated by sea-orm-macros
  • is_explicit: Generated by sea-orm-macros
  • observed_at: Generated by sea-orm-macros
  • created_at: Generated by sea-orm-macros
  • updated_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 {
    Id,
    PluginKey,
    Marketplace,
    ProductId,
    EditionId,
    Title,
    Categories,
    Subtitle,
    Authors,
    Narrators,
    Series,
    SeriesIndex,
    SeriesProductId,
    Description,
    Publisher,
    PublishedAt,
    LengthMinutes,
    Language,
    CoverUrl,
    Url,
    RatingOverall,
    RatingCount,
    IsAbridged,
    IsExplicit,
    ObservedAt,
    CreatedAt,
    UpdatedAt,
}

Generated by sea-orm-macros

Variants

  • Id: Generated by sea-orm-macros
  • PluginKey: Generated by sea-orm-macros
  • Marketplace: Generated by sea-orm-macros
  • ProductId: Generated by sea-orm-macros
  • EditionId: Generated by sea-orm-macros
  • Title: Generated by sea-orm-macros
  • Categories: Generated by sea-orm-macros
  • Subtitle: Generated by sea-orm-macros
  • Authors: Generated by sea-orm-macros
  • Narrators: Generated by sea-orm-macros
  • Series: Generated by sea-orm-macros
  • SeriesIndex: Generated by sea-orm-macros
  • SeriesProductId: Generated by sea-orm-macros
  • Description: Generated by sea-orm-macros
  • Publisher: Generated by sea-orm-macros
  • PublishedAt: Generated by sea-orm-macros
  • LengthMinutes: Generated by sea-orm-macros
  • Language: Generated by sea-orm-macros
  • CoverUrl: Generated by sea-orm-macros
  • Url: Generated by sea-orm-macros
  • RatingOverall: Generated by sea-orm-macros
  • RatingCount: Generated by sea-orm-macros
  • IsAbridged: Generated by sea-orm-macros
  • IsExplicit: Generated by sea-orm-macros
  • ObservedAt: Generated by sea-orm-macros
  • CreatedAt: Generated by sea-orm-macros
  • UpdatedAt: Generated by sea-orm-macros

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

PrimaryKey

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

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