bookclerk_library::entities::storage_scan_rows
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. |
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:objectoridentity.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.
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>
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
pub struct PrimaryKeyIter {
/* private fields */
}
An iterator over the variants of PrimaryKey
Implements: Clone, Debug, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator
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-macroskind: Generated by sea-orm-macrosidentity: Generated by sea-orm-macrosobject_key: Generated by sea-orm-macrossize: Generated by sea-orm-macrosmedia_rank: Generated by sea-orm-macrosis_audio: Generated by sea-orm-macrosclaimed: 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 {
ScanId,
Kind,
Identity,
ObjectKey,
Size,
MediaRank,
IsAudio,
Claimed,
}
Generated by sea-orm-macros
Variants
ScanId: Generated by sea-orm-macrosKind: Generated by sea-orm-macrosIdentity: Generated by sea-orm-macrosObjectKey: Generated by sea-orm-macrosSize: Generated by sea-orm-macrosMediaRank: Generated by sea-orm-macrosIsAudio: Generated by sea-orm-macrosClaimed: Generated by sea-orm-macros
Implements: Clone, ColumnTrait, Copy, Debug, FromStr, Iden, IdenStatic, IntoEnumIterator
pub enum PrimaryKey {
ScanId,
Kind,
Identity,
ObjectKey,
}
Generated by sea-orm-macros
Variants
ScanId: Generated by sea-orm-macrosKind: Generated by sea-orm-macrosIdentity: Generated by sea-orm-macrosObjectKey: Generated by sea-orm-macros
Implements: Clone, Copy, Debug, Iden, IdenStatic, IntoEnumIterator, PrimaryKeyToColumn, PrimaryKeyTrait
pub enum Relation {}
No declared relations.
Implements: Clone, Copy, Debug, IntoEnumIterator, RelationTrait
Generated from crates/bookclerk-library at main · View as Markdown