pub struct StagedUpload {Show 16 fields
pub id: String,
pub entity_id: String,
pub disk_type: DiskType,
pub destination_path: String,
pub local_path: String,
pub file_name: String,
pub size_bytes: u64,
pub mime_type: Option<String>,
pub local_checksum: String,
pub state: StagedUploadState,
pub retry_count: u32,
pub max_retries: u32,
pub error: Option<String>,
pub staged_at: i64,
pub updated_at: i64,
pub conflict: Option<StagingConflict>,
}Expand description
A file staged for upload while offline.
Fields§
§id: StringUnique identifier for this staged upload.
entity_id: StringEntity ID that owns the destination disk.
disk_type: DiskTypeDestination disk type.
destination_path: StringDestination path within the disk.
local_path: StringLocal file path (source).
file_name: StringFile name for display.
size_bytes: u64File size in bytes.
mime_type: Option<String>MIME type of the file.
local_checksum: StringBLAKE3 checksum of the local file (at staging time).
state: StagedUploadStateCurrent state of the staged upload.
retry_count: u32Number of upload retry attempts.
max_retries: u32Maximum retry attempts before marking as failed.
error: Option<String>Error message if state is Failed.
staged_at: i64Unix timestamp (ms) when the file was staged.
updated_at: i64Unix timestamp (ms) of last state update.
conflict: Option<StagingConflict>Associated conflict (if state is Conflicted).
Implementations§
Source§impl StagedUpload
impl StagedUpload
Trait Implementations§
Source§impl Clone for StagedUpload
impl Clone for StagedUpload
Source§fn clone(&self) -> StagedUpload
fn clone(&self) -> StagedUpload
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StagedUpload
impl Debug for StagedUpload
Source§impl<'de> Deserialize<'de> for StagedUpload
impl<'de> Deserialize<'de> for StagedUpload
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StagedUpload
impl PartialEq for StagedUpload
Source§impl Serialize for StagedUpload
impl Serialize for StagedUpload
impl Eq for StagedUpload
impl StructuralPartialEq for StagedUpload
Auto Trait Implementations§
impl Freeze for StagedUpload
impl RefUnwindSafe for StagedUpload
impl Send for StagedUpload
impl Sync for StagedUpload
impl Unpin for StagedUpload
impl UnsafeUnpin for StagedUpload
impl UnwindSafe for StagedUpload
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more