bookclerk_library::entities::node_upload_sessions
SeaORM entity for node_upload_sessions: one title's streamed upload
from a branch node to a shared node (H-4 design, section 6). Written by
control_plane::uploads.
| Item | Kind | Summary |
|---|---|---|
Model |
struct | Row shape for one upload. |
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 upload_id: String,
pub token_hash: String,
pub node_id: String,
pub job_id: String,
pub lease_generation: i64,
pub receiving_node_id: String,
pub holding_id: String,
pub primary_key: String,
pub manifest_json: String,
pub received_json: String,
pub state: String,
pub created_at: String,
pub expires_at: String,
pub committed_at: Option<String>,
}
Row shape for one upload.
Fields
upload_id: Upload id (hyphenated UUID).token_hash:hash_tokenof the bearer token; the token itself is never stored.node_id: Branch node the upload was granted to.job_id: Acquire job the upload belongs to.lease_generation: Lease generation the grant was made under; the upload is accepted only while it is the job's live fence for this node.receiving_node_id: Shared node that streams the files to its destinations.holding_id: The title's holding (holdings.id): the account holding of a job upload, or the node holding of a branch's catalog upload; empty for a job's closing upload.primary_key: Storage key of the title's primary audio file.manifest_json: The declared files and PDF key (JSON object{files, pdfKey}, each file{key, size, sha256, content_type}).received_json: Indexes of the files written to every destination (JSON list).state:open,committedoraborted.created_at: RFC 3339 grant time.expires_at: RFC 3339 time after which the token is refused.committed_at: RFC 3339 commit time.
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 upload_id: ActiveValue<String>,
pub token_hash: ActiveValue<String>,
pub node_id: ActiveValue<String>,
pub job_id: ActiveValue<String>,
pub lease_generation: ActiveValue<i64>,
pub receiving_node_id: ActiveValue<String>,
pub holding_id: ActiveValue<String>,
pub primary_key: ActiveValue<String>,
pub manifest_json: ActiveValue<String>,
pub received_json: ActiveValue<String>,
pub state: ActiveValue<String>,
pub created_at: ActiveValue<String>,
pub expires_at: ActiveValue<String>,
pub committed_at: ActiveValue<Option<String>>,
}
Generated by sea-orm-macros
Fields
upload_id: Generated by sea-orm-macrostoken_hash: Generated by sea-orm-macrosnode_id: Generated by sea-orm-macrosjob_id: Generated by sea-orm-macroslease_generation: Generated by sea-orm-macrosreceiving_node_id: Generated by sea-orm-macrosholding_id: Generated by sea-orm-macrosprimary_key: Generated by sea-orm-macrosmanifest_json: Generated by sea-orm-macrosreceived_json: Generated by sea-orm-macrosstate: Generated by sea-orm-macroscreated_at: Generated by sea-orm-macrosexpires_at: Generated by sea-orm-macroscommitted_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 {
UploadId,
TokenHash,
NodeId,
JobId,
LeaseGeneration,
ReceivingNodeId,
HoldingId,
PrimaryKey,
ManifestJson,
ReceivedJson,
State,
CreatedAt,
ExpiresAt,
CommittedAt,
}
Generated by sea-orm-macros
Variants
UploadId: Generated by sea-orm-macrosTokenHash: Generated by sea-orm-macrosNodeId: Generated by sea-orm-macrosJobId: Generated by sea-orm-macrosLeaseGeneration: Generated by sea-orm-macrosReceivingNodeId: Generated by sea-orm-macrosHoldingId: Generated by sea-orm-macrosPrimaryKey: Generated by sea-orm-macrosManifestJson: Generated by sea-orm-macrosReceivedJson: Generated by sea-orm-macrosState: Generated by sea-orm-macrosCreatedAt: Generated by sea-orm-macrosExpiresAt: Generated by sea-orm-macrosCommittedAt: Generated by sea-orm-macros
Implements: Clone, ColumnTrait, Copy, Debug, FromStr, Iden, IdenStatic, IntoEnumIterator
pub enum PrimaryKey {
UploadId,
}
Generated by sea-orm-macros
Variants
UploadId: 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