pub struct Job {
pub namespace: String,
pub queue: String,
pub data: String,
pub job_id: String,
pub ttl: u64,
pub elapsed_ms: u64,
}
Fields§
§namespace: String
The namespace of the job
queue: String
The queue which holds the job
data: String
The data holded by the job, note that data is base64 encoded
job_id: String
The id of the job
ttl: u64
The time-to-live of the job
elapsed_ms: u64
The elapsed value in ms
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 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