# bookclerk_library::entities::window_books

SeaORM entity for `window_books`: on a branch or a clerk, the books of
each library it reads, one row per edition
(`control_plane::window_books`).

| Item | Kind | Summary |
| --- | --- | --- |
| [`Model`](#model) | struct | One edition a library holds for this install's person. |
| [`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). |

## Structs

### Model

```rust
pub struct Model {
    pub parent_library_id: String,
    pub store: String,
    pub marketplace: String,
    pub product_id: String,
    pub work_ref: String,
    pub local_work_id: Option<String>,
    pub parts_version: String,
    pub seen_at: String,
}
```

One edition a library holds for this install's person.

**Fields**

- `parent_library_id`: The library (parent library id) that holds it.
- `store`: The store's plain id (`audible`, `libro`, ...).
- `marketplace`: Lower-cased store marketplace; empty when the store has none.
- `product_id`: The store's product id.
- `work_ref`: The library's own key grouping its editions of one work; only
  compared within that library.
- `local_work_id`: The work of this install's library the identifiers reach, when
  exactly one does.
- `parts_version`: The `window_book_parts` version holding this edition's details.
- `seen_at`: RFC 3339 stamp of the read that last named this edition.

#### Model::into_ex

```rust
pub fn into_ex(self) -> Self
```

Generated by sea-orm-macros

Implements: `Clone`, `Debug`, `Eq`, `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`

### 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 parent_library_id: ActiveValue<String>,
    pub store: ActiveValue<String>,
    pub marketplace: ActiveValue<String>,
    pub product_id: ActiveValue<String>,
    pub work_ref: ActiveValue<String>,
    pub local_work_id: ActiveValue<Option<String>>,
    pub parts_version: ActiveValue<String>,
    pub seen_at: ActiveValue<String>,
}
```

Generated by sea-orm-macros

**Fields**

- `parent_library_id`: Generated by sea-orm-macros
- `store`: Generated by sea-orm-macros
- `marketplace`: Generated by sea-orm-macros
- `product_id`: Generated by sea-orm-macros
- `work_ref`: Generated by sea-orm-macros
- `local_work_id`: Generated by sea-orm-macros
- `parts_version`: Generated by sea-orm-macros
- `seen_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 {
    ParentLibraryId,
    Store,
    Marketplace,
    ProductId,
    WorkRef,
    LocalWorkId,
    PartsVersion,
    SeenAt,
}
```

Generated by sea-orm-macros

**Variants**

- `ParentLibraryId`: Generated by sea-orm-macros
- `Store`: Generated by sea-orm-macros
- `Marketplace`: Generated by sea-orm-macros
- `ProductId`: Generated by sea-orm-macros
- `WorkRef`: Generated by sea-orm-macros
- `LocalWorkId`: Generated by sea-orm-macros
- `PartsVersion`: Generated by sea-orm-macros
- `SeenAt`: Generated by sea-orm-macros

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

### PrimaryKey

```rust
pub enum PrimaryKey {
    ParentLibraryId,
    Store,
    Marketplace,
    ProductId,
}
```

Generated by sea-orm-macros

**Variants**

- `ParentLibraryId`: Generated by sea-orm-macros
- `Store`: Generated by sea-orm-macros
- `Marketplace`: Generated by sea-orm-macros
- `ProductId`: Generated by sea-orm-macros

Implements: `Clone`, `Copy`, `Debug`, `Iden`, `IdenStatic`, `IntoEnumIterator`, `PrimaryKeyToColumn`, `PrimaryKeyTrait`

### Relation

```rust
pub enum Relation {}
```

Declared SeaORM relations (none).

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