bookclerk_library::entities::title_request_sources
SeaORM entity for the title_request_sources — per-storefront catalog/pricing snapshot for a wish.
| 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 title_request_id: i64,
pub source: String,
pub product_id: String,
pub title: Option<String>,
pub subtitle: Option<String>,
pub authors: Option<String>,
pub narrators: Option<String>,
pub series: Option<String>,
pub series_index: Option<String>,
pub asin: Option<String>,
pub isbn: Option<String>,
pub description: Option<String>,
pub publisher: Option<String>,
pub length_minutes: Option<i64>,
pub published_at: Option<String>,
pub categories: Option<String>,
pub language: Option<String>,
pub cover_url: Option<String>,
pub url: Option<String>,
pub price_cents: Option<i64>,
pub currency: Option<String>,
pub price_label: Option<String>,
pub list_price_cents: Option<i64>,
pub list_price_label: Option<String>,
pub member_price_cents: Option<i64>,
pub member_price_label: Option<String>,
pub observed_at: Option<String>,
pub listing_id: Option<String>,
pub created_at: String,
pub updated_at: String,
}
Row shape for this table (DeriveEntityModel).
Fields
id: Surrogate primary key assigned by the database.title_request_id: Foreign key totitle_requests.id.source: Content-source plugin id (audible,libro, …).product_id: Storefront product id (ASIN, ISBN, UUID, …).title: Display title of the work or edition.subtitle: Optional subtitle from bibliographic metadata.authors: Comma-separated or JSON author list from the storefront.narrators: Comma-separated or JSON narrator list when present.series: Series name when the title belongs to a series.series_index: Position within the series (storefront string form).asin: Amazon ASIN when known; otherwise null.isbn: ISBN-10/13 when known; otherwise null.description: Blurb / synopsis text (may contain HTML).publisher: Publisher name from metadata enrichment or the storefront.length_minutes: Runtime in whole minutes when the storefront reports it.published_at: Publication date string from the storefront or enrichment.categories: Storefront category / genre path list (serialized).language: BCP-47 or storefront language code when known.cover_url: HTTPS URL for cover art when known.url: Storefront product or purchase URL when known.price_cents: Observed price in minor currency units, when known.currency: ISO 4217 currency code for price fields.price_label: Storefront-formatted price string for display.list_price_cents: List/MSRP price in minor units, when known.list_price_label: Storefront-formatted list price for display.member_price_cents: Member/subscriber price in minor units, when known.member_price_label: Storefront-formatted member price for display.observed_at: RFC 3339 time when this storefront snapshot was observed.listing_id: The shared pool'sstore_listingsrow for this store edition, when the server looked the edition up at the store. The pool holds only what the store reported; the text and prices on this row are the wish's own and may come from the browser. Cleared if the listing is deleted.created_at: RFC 3339 timestamp when the row was inserted.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, 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, Related<Entity>
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 title_request_id: ActiveValue<i64>,
pub source: ActiveValue<String>,
pub product_id: ActiveValue<String>,
pub title: 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 asin: ActiveValue<Option<String>>,
pub isbn: ActiveValue<Option<String>>,
pub description: ActiveValue<Option<String>>,
pub publisher: ActiveValue<Option<String>>,
pub length_minutes: ActiveValue<Option<i64>>,
pub published_at: ActiveValue<Option<String>>,
pub categories: ActiveValue<Option<String>>,
pub language: ActiveValue<Option<String>>,
pub cover_url: ActiveValue<Option<String>>,
pub url: ActiveValue<Option<String>>,
pub price_cents: ActiveValue<Option<i64>>,
pub currency: ActiveValue<Option<String>>,
pub price_label: ActiveValue<Option<String>>,
pub list_price_cents: ActiveValue<Option<i64>>,
pub list_price_label: ActiveValue<Option<String>>,
pub member_price_cents: ActiveValue<Option<i64>>,
pub member_price_label: ActiveValue<Option<String>>,
pub observed_at: ActiveValue<Option<String>>,
pub listing_id: ActiveValue<Option<String>>,
pub created_at: ActiveValue<String>,
pub updated_at: ActiveValue<String>,
}
Generated by sea-orm-macros
Fields
id: Generated by sea-orm-macrostitle_request_id: Generated by sea-orm-macrossource: Generated by sea-orm-macrosproduct_id: Generated by sea-orm-macrostitle: Generated by sea-orm-macrossubtitle: Generated by sea-orm-macrosauthors: Generated by sea-orm-macrosnarrators: Generated by sea-orm-macrosseries: Generated by sea-orm-macrosseries_index: Generated by sea-orm-macrosasin: Generated by sea-orm-macrosisbn: Generated by sea-orm-macrosdescription: Generated by sea-orm-macrospublisher: Generated by sea-orm-macroslength_minutes: Generated by sea-orm-macrospublished_at: Generated by sea-orm-macroscategories: Generated by sea-orm-macroslanguage: Generated by sea-orm-macroscover_url: Generated by sea-orm-macrosurl: Generated by sea-orm-macrosprice_cents: Generated by sea-orm-macroscurrency: Generated by sea-orm-macrosprice_label: Generated by sea-orm-macroslist_price_cents: Generated by sea-orm-macroslist_price_label: Generated by sea-orm-macrosmember_price_cents: Generated by sea-orm-macrosmember_price_label: Generated by sea-orm-macrosobserved_at: Generated by sea-orm-macroslisting_id: Generated by sea-orm-macroscreated_at: 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,
TitleRequestId,
Source,
ProductId,
Title,
Subtitle,
Authors,
Narrators,
Series,
SeriesIndex,
Asin,
Isbn,
Description,
Publisher,
LengthMinutes,
PublishedAt,
Categories,
Language,
CoverUrl,
Url,
PriceCents,
Currency,
PriceLabel,
ListPriceCents,
ListPriceLabel,
MemberPriceCents,
MemberPriceLabel,
ObservedAt,
ListingId,
CreatedAt,
UpdatedAt,
}
Generated by sea-orm-macros
Variants
Id: Generated by sea-orm-macrosTitleRequestId: Generated by sea-orm-macrosSource: Generated by sea-orm-macrosProductId: Generated by sea-orm-macrosTitle: Generated by sea-orm-macrosSubtitle: Generated by sea-orm-macrosAuthors: Generated by sea-orm-macrosNarrators: Generated by sea-orm-macrosSeries: Generated by sea-orm-macrosSeriesIndex: Generated by sea-orm-macrosAsin: Generated by sea-orm-macrosIsbn: Generated by sea-orm-macrosDescription: Generated by sea-orm-macrosPublisher: Generated by sea-orm-macrosLengthMinutes: Generated by sea-orm-macrosPublishedAt: Generated by sea-orm-macrosCategories: Generated by sea-orm-macrosLanguage: Generated by sea-orm-macrosCoverUrl: Generated by sea-orm-macrosUrl: Generated by sea-orm-macrosPriceCents: Generated by sea-orm-macrosCurrency: Generated by sea-orm-macrosPriceLabel: Generated by sea-orm-macrosListPriceCents: Generated by sea-orm-macrosListPriceLabel: Generated by sea-orm-macrosMemberPriceCents: Generated by sea-orm-macrosMemberPriceLabel: Generated by sea-orm-macrosObservedAt: Generated by sea-orm-macrosListingId: Generated by sea-orm-macrosCreatedAt: 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 {
TitleRequest,
}
Declared SeaORM relations (none unless FK edges are modeled).
Variants
TitleRequest: Parenttitle_requests::Modelrow for this snapshot.
Implements: Clone, Copy, Debug, IntoEnumIterator, RelationTrait
Generated from crates/bookclerk-library at main · View as Markdown