bookclerk_library::entities::ingest_batches
SeaORM entity for ingest_batches: one batch of uploaded files or
intake references, held by one patron. Written by
control_plane::ingest.
| Item | Kind | Summary |
|---|---|---|
Model |
struct | Row shape for one batch. |
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). |
pub struct Model {
pub id: String,
pub user_id: i64,
pub node_id: String,
pub source: String,
pub intake_instance: Option<String>,
pub state: String,
pub file_count: i64,
pub declared_bytes: i64,
pub job_id: Option<String>,
pub detail: Option<String>,
pub created_at: String,
pub updated_at: String,
pub finished_at: Option<String>,
}
Row shape for one batch.
Fields
id: Batch id: 32 lower-case hex digits (control_plane::IngestBatchId).user_id: The patron who holds every book the batch stores (users.id).node_id: The node whose disk holds the staged bytes, the only one that runs the batch.source:upload(staged onnode_id) orintake(read from a storage instance in place).intake_instance: For an intake batch, the storage plugin instance its members are read from;Nonefor an upload.state:open,committed,running,done,failedorcancelled.file_count: Members named by the manifest (expanded archive entries excluded).declared_bytes: Sum of the manifest's declared sizes, in bytes.job_id: Theingest_batchjob once committed.detail: Why a failed batch failed, for the person who uploaded it.created_at: RFC 3339 creation time.updated_at: RFC 3339 time of the last activity (a chunk, a commit, a state change); the idle prune reads it.finished_at: RFC 3339 time the batch reached a final state.
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 id: ActiveValue<String>,
pub user_id: ActiveValue<i64>,
pub node_id: ActiveValue<String>,
pub source: ActiveValue<String>,
pub intake_instance: ActiveValue<Option<String>>,
pub state: ActiveValue<String>,
pub file_count: ActiveValue<i64>,
pub declared_bytes: ActiveValue<i64>,
pub job_id: ActiveValue<Option<String>>,
pub detail: ActiveValue<Option<String>>,
pub created_at: ActiveValue<String>,
pub updated_at: ActiveValue<String>,
pub finished_at: ActiveValue<Option<String>>,
}
Generated by sea-orm-macros
Fields
id: Generated by sea-orm-macrosuser_id: Generated by sea-orm-macrosnode_id: Generated by sea-orm-macrossource: Generated by sea-orm-macrosintake_instance: Generated by sea-orm-macrosstate: Generated by sea-orm-macrosfile_count: Generated by sea-orm-macrosdeclared_bytes: Generated by sea-orm-macrosjob_id: Generated by sea-orm-macrosdetail: Generated by sea-orm-macroscreated_at: Generated by sea-orm-macrosupdated_at: Generated by sea-orm-macrosfinished_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,
UserId,
NodeId,
Source,
IntakeInstance,
State,
FileCount,
DeclaredBytes,
JobId,
Detail,
CreatedAt,
UpdatedAt,
FinishedAt,
}
Generated by sea-orm-macros
Variants
Id: Generated by sea-orm-macrosUserId: Generated by sea-orm-macrosNodeId: Generated by sea-orm-macrosSource: Generated by sea-orm-macrosIntakeInstance: Generated by sea-orm-macrosState: Generated by sea-orm-macrosFileCount: Generated by sea-orm-macrosDeclaredBytes: Generated by sea-orm-macrosJobId: Generated by sea-orm-macrosDetail: Generated by sea-orm-macrosCreatedAt: Generated by sea-orm-macrosUpdatedAt: Generated by sea-orm-macrosFinishedAt: 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 {}
Declared SeaORM relations (none).
Implements: Clone, Copy, Debug, IntoEnumIterator, RelationTrait
Generated from crates/bookclerk-library at main · View as Markdown