pub struct JobAttributes {
pub job_type: String,
pub status: JobStatus,
pub progress: Option<Value>,
pub result: Option<String>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Fields§
§job_type: String§status: JobStatus§progress: Option<Value>Progress is polymorphic server-side: a float percentage for some job types, a structured object (e.g. { item_id, verdict, … }) for review jobs. Accept any JSON value so polling never fails to decode.
result: Option<String>§created_at: DateTime<Utc>§updated_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for JobAttributes
impl Clone for JobAttributes
Source§impl Debug for JobAttributes
impl Debug for JobAttributes
Source§impl<'de> Deserialize<'de> for JobAttributes
impl<'de> Deserialize<'de> for JobAttributes
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 Forget for JobAttributes
impl Freeze for JobAttributes
impl Move for JobAttributes
impl RefUnwindSafe for JobAttributes
impl Send for JobAttributes
impl Sync for JobAttributes
impl Unpin for JobAttributes
impl UnsafeUnpin for JobAttributeswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
impl UnwindSafe for JobAttributeswhere
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
NonZero<i32>: UnwindSafe,
Utc: UnwindSafe,
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