pub struct ExportJob {
pub id: Uuid,
pub user_id: Uuid,
pub format: ExportFormat,
pub categories: Vec<ExportCategory>,
pub status: ExportStatus,
pub progress: u8,
pub download_url: Option<String>,
pub file_size: Option<u64>,
pub created_at: DateTime<Utc>,
pub completed_at: Option<DateTime<Utc>>,
pub expires_at: Option<DateTime<Utc>>,
pub error: Option<String>,
}Expand description
Export job definition
Fields§
§id: UuidUnique export ID
user_id: UuidUser ID requesting export
format: ExportFormatExport format
categories: Vec<ExportCategory>Categories to export
status: ExportStatusCurrent status
progress: u8Progress percentage (0-100)
download_url: Option<String>Download URL (when completed)
file_size: Option<u64>File size in bytes (when completed)
created_at: DateTime<Utc>Creation timestamp
completed_at: Option<DateTime<Utc>>Completion timestamp
expires_at: Option<DateTime<Utc>>Expiration timestamp (for download link)
error: Option<String>Error message (if failed)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ExportJob
impl<'de> Deserialize<'de> for ExportJob
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
Auto Trait Implementations§
impl Freeze for ExportJob
impl RefUnwindSafe for ExportJob
impl Send for ExportJob
impl Sync for ExportJob
impl Unpin for ExportJob
impl UnwindSafe for ExportJob
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more