pub struct JobRecord {
pub id: String,
pub kind: String,
pub started_by: Option<String>,
pub status: Status,
pub created: String,
pub started: Option<String>,
pub finished: Option<String>,
pub error: Option<String>,
pub request_id: Option<String>,
pub request: Option<Value>,
pub beat: Option<String>,
}Fields§
§id: String§kind: String§started_by: Option<String>§status: Status§created: String§started: Option<String>§finished: Option<String>§error: Option<String>§request_id: Option<String>The request that started it, as in its X-Request-Id.
request: Option<Value>What to run again after a restart; a job without it cannot continue.
beat: Option<String>The running job’s last sign of life, so a starting server leaves a live one alone.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JobRecord
impl<'de> Deserialize<'de> for JobRecord
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 JobRecord
impl Freeze for JobRecord
impl RefUnwindSafe for JobRecord
impl Send for JobRecord
impl Sync for JobRecord
impl Unpin for JobRecord
impl UnsafeUnpin for JobRecord
impl UnwindSafe for JobRecord
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