bookclerk_library::entities::storage_scan_rows

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

Last updated View as Markdown

SeaORM entity for paged storage-scan rows.

Object and identity hits live here so a scan does not retain the inventory in process memory. kind is object or identity.

Item Kind Summary
Model struct One durable scan row.
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 No declared relations.

Structs

Model

pub struct Model {
    pub scan_id: String,
    pub kind: String,
    pub identity: String,
    pub object_key: String,
    pub size: i64,
    pub media_rank: i64,
    pub is_audio: i64,
    pub claimed: i64,
}

One durable scan row.

Fields

  • scan_id: Scan generation id.
  • kind: object or identity.
  • identity: Uppercase ASIN/ISBN for identity rows; empty for object rows.
  • object_key: Storage key.
  • size: Object size in bytes.
  • media_rank: Lower is a better packaged format.
  • is_audio: 1 when the key is acquired audio.
  • claimed: 1 after a library row claims the object.

Model::into_ex

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

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 scan_id: ActiveValue<String>,
    pub kind: ActiveValue<String>,
    pub identity: ActiveValue<String>,
    pub object_key: ActiveValue<String>,
    pub size: ActiveValue<i64>,
    pub media_rank: ActiveValue<i64>,
    pub is_audio: ActiveValue<i64>,
    pub claimed: ActiveValue<i64>,
}

Generated by sea-orm-macros

Fields

  • scan_id: Generated by sea-orm-macros
  • kind: Generated by sea-orm-macros
  • identity: Generated by sea-orm-macros
  • object_key: Generated by sea-orm-macros
  • size: Generated by sea-orm-macros
  • media_rank: Generated by sea-orm-macros
  • is_audio: Generated by sea-orm-macros
  • claimed: 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 {
    ScanId,
    Kind,
    Identity,
    ObjectKey,
    Size,
    MediaRank,
    IsAudio,
    Claimed,
}

Generated by sea-orm-macros

Variants

  • ScanId: Generated by sea-orm-macros
  • Kind: Generated by sea-orm-macros
  • Identity: Generated by sea-orm-macros
  • ObjectKey: Generated by sea-orm-macros
  • Size: Generated by sea-orm-macros
  • MediaRank: Generated by sea-orm-macros
  • IsAudio: Generated by sea-orm-macros
  • Claimed: Generated by sea-orm-macros

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

PrimaryKey

pub enum PrimaryKey {
    ScanId,
    Kind,
    Identity,
    ObjectKey,
}

Generated by sea-orm-macros

Variants

  • ScanId: Generated by sea-orm-macros
  • Kind: Generated by sea-orm-macros
  • Identity: Generated by sea-orm-macros
  • ObjectKey: Generated by sea-orm-macros

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

Relation

pub enum Relation {}

No declared relations.

Implements: Clone, Copy, Debug, IntoEnumIterator, RelationTrait

Generated from crates/bookclerk-library at main · View as Markdown