#[non_exhaustive]pub struct Job {
pub id: String,
pub tag: Option<String>,
pub status: JobStatus,
pub created_at: Option<String>,
pub started_at: Option<String>,
pub ended_at: Option<String>,
pub tasks: Vec<JobTask>,
pub links: BTreeMap<String, Value>,
pub extra: BTreeMap<String, Value>,
}Expand description
CloudConvert job returned by create, get, wait, and list endpoints.
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: String§tag: Option<String>§status: JobStatus§created_at: Option<String>§started_at: Option<String>§ended_at: Option<String>§tasks: Vec<JobTask>§links: BTreeMap<String, Value>§extra: BTreeMap<String, Value>Implementations§
Source§impl Job
impl Job
pub fn is_finished(&self) -> bool
pub fn is_error(&self) -> bool
pub fn is_terminal(&self) -> bool
pub fn export_tasks(&self) -> impl Iterator<Item = &JobTask>
pub fn finished_export_tasks(&self) -> impl Iterator<Item = &JobTask>
Sourcepub fn export_urls(&self) -> Vec<&FileResult>
pub fn export_urls(&self) -> Vec<&FileResult>
Collects file results from finished export/url tasks in this job.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Job
impl<'de> Deserialize<'de> for Job
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 Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnsafeUnpin for Job
impl UnwindSafe for Job
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