# 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`](#model) | struct | Row shape for this table (`DeriveEntityModel`). |
| [`ColumnIter`](#columniter) | struct | An iterator over the variants of [Column] |
| [`Entity`](#entity) | struct | Generated by sea-orm-macros |
| [`PrimaryKeyIter`](#primarykeyiter) | struct | An iterator over the variants of [PrimaryKey] |
| [`ActiveModel`](#activemodel) | struct | Generated by sea-orm-macros |
| [`RelationIter`](#relationiter) | struct | An iterator over the variants of [Relation] |
| [`Column`](#column) | enum | Generated by sea-orm-macros |
| [`PrimaryKey`](#primarykey) | enum | Generated by sea-orm-macros |
| [`Relation`](#relation) | enum | Declared SeaORM relations (none unless FK edges are modeled). |

## Structs

### Model

```rust
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 to `title_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's `store_listings` row 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.

#### Model::into_ex

```rust
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

```rust
pub struct ColumnIter {
    /* private fields */
}
```

An iterator over the variants of [Column](#column)

Implements: `Clone`, `Debug`, `DoubleEndedIterator`, `ExactSizeIterator`, `FusedIterator`, `Iterator`

### Entity

```rust
pub struct Entity;
```

Generated by sea-orm-macros

Implements: `Clone`, `Copy`, `Debug`, `Default`, `EntityName`, `EntityTrait`, `Iden`, `IdenStatic`, `Related<Entity>`

### PrimaryKeyIter

```rust
pub struct PrimaryKeyIter {
    /* private fields */
}
```

An iterator over the variants of [PrimaryKey](#primarykey)

Implements: `Clone`, `Debug`, `DoubleEndedIterator`, `ExactSizeIterator`, `FusedIterator`, `Iterator`

### ActiveModel

```rust
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-macros
- `title_request_id`: Generated by sea-orm-macros
- `source`: Generated by sea-orm-macros
- `product_id`: Generated by sea-orm-macros
- `title`: 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
- `asin`: Generated by sea-orm-macros
- `isbn`: Generated by sea-orm-macros
- `description`: Generated by sea-orm-macros
- `publisher`: Generated by sea-orm-macros
- `length_minutes`: Generated by sea-orm-macros
- `published_at`: Generated by sea-orm-macros
- `categories`: Generated by sea-orm-macros
- `language`: Generated by sea-orm-macros
- `cover_url`: Generated by sea-orm-macros
- `url`: Generated by sea-orm-macros
- `price_cents`: Generated by sea-orm-macros
- `currency`: Generated by sea-orm-macros
- `price_label`: Generated by sea-orm-macros
- `list_price_cents`: Generated by sea-orm-macros
- `list_price_label`: Generated by sea-orm-macros
- `member_price_cents`: Generated by sea-orm-macros
- `member_price_label`: Generated by sea-orm-macros
- `observed_at`: Generated by sea-orm-macros
- `listing_id`: 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

```rust
pub struct RelationIter {
    /* private fields */
}
```

An iterator over the variants of [Relation](#relation)

Implements: `Clone`, `Debug`, `DoubleEndedIterator`, `ExactSizeIterator`, `FusedIterator`, `Iterator`

## Enums

### Column

```rust
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-macros
- `TitleRequestId`: Generated by sea-orm-macros
- `Source`: Generated by sea-orm-macros
- `ProductId`: Generated by sea-orm-macros
- `Title`: 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
- `Asin`: Generated by sea-orm-macros
- `Isbn`: Generated by sea-orm-macros
- `Description`: Generated by sea-orm-macros
- `Publisher`: Generated by sea-orm-macros
- `LengthMinutes`: Generated by sea-orm-macros
- `PublishedAt`: Generated by sea-orm-macros
- `Categories`: Generated by sea-orm-macros
- `Language`: Generated by sea-orm-macros
- `CoverUrl`: Generated by sea-orm-macros
- `Url`: Generated by sea-orm-macros
- `PriceCents`: Generated by sea-orm-macros
- `Currency`: Generated by sea-orm-macros
- `PriceLabel`: Generated by sea-orm-macros
- `ListPriceCents`: Generated by sea-orm-macros
- `ListPriceLabel`: Generated by sea-orm-macros
- `MemberPriceCents`: Generated by sea-orm-macros
- `MemberPriceLabel`: Generated by sea-orm-macros
- `ObservedAt`: Generated by sea-orm-macros
- `ListingId`: 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

```rust
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

```rust
pub enum Relation {
    TitleRequest,
}
```

Declared SeaORM relations (none unless FK edges are modeled).

**Variants**

- `TitleRequest`: Parent [`title_requests::Model`](/docs/internals/crates/bookclerk_library/entities/title_requests/index.md#model) row for this snapshot.

Implements: `Clone`, `Copy`, `Debug`, `IntoEnumIterator`, `RelationTrait`
