#[non_exhaustive]pub struct JobTask {Show 13 fields
pub id: Option<String>,
pub name: String,
pub operation: String,
pub status: TaskStatus,
pub message: Option<String>,
pub code: Option<String>,
pub credits: Option<f64>,
pub created_at: Option<String>,
pub started_at: Option<String>,
pub ended_at: Option<String>,
pub result: Option<TaskResult>,
pub payload: Option<Value>,
pub extra: BTreeMap<String, Value>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: Option<String>§name: String§operation: String§status: TaskStatus§message: Option<String>§code: Option<String>§credits: Option<f64>§created_at: Option<String>§started_at: Option<String>§ended_at: Option<String>§result: Option<TaskResult>§payload: Option<Value>§extra: BTreeMap<String, Value>Implementations§
Source§impl JobTask
impl JobTask
pub fn is_finished(&self) -> bool
pub fn is_error(&self) -> bool
pub fn is_terminal(&self) -> bool
pub fn is_export_url(&self) -> bool
pub fn files(&self) -> impl Iterator<Item = &FileResult>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JobTask
impl<'de> Deserialize<'de> for JobTask
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 JobTask
impl RefUnwindSafe for JobTask
impl Send for JobTask
impl Sync for JobTask
impl Unpin for JobTask
impl UnsafeUnpin for JobTask
impl UnwindSafe for JobTask
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