pub struct DelayedJob {
pub id: String,
pub tenant_id: String,
pub name: String,
pub run_at: String,
pub url: String,
pub method: String,
pub headers: Option<Value>,
pub body: Option<String>,
pub status: String,
pub created_at: String,
pub updated_at: String,
}Expand description
A one-off delayed job returned by the Clockwork API.
Fields§
§id: StringUnique delayed job identifier.
tenant_id: StringIdentifier of the tenant that owns the job.
name: StringHuman-readable name for the job.
run_at: StringISO 8601 timestamp at which the job runs.
url: StringURL invoked when the job runs.
method: StringHTTP method used for the request (e.g. "POST").
headers: Option<Value>Optional headers sent with the request.
body: Option<String>Optional request body sent with the run.
status: StringCurrent status of the job ("pending", "completed", "cancelled", …).
created_at: StringISO 8601 timestamp of when the job was created.
updated_at: StringISO 8601 timestamp of when the job was last updated.
Trait Implementations§
Source§impl Clone for DelayedJob
impl Clone for DelayedJob
Source§fn clone(&self) -> DelayedJob
fn clone(&self) -> DelayedJob
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DelayedJob
impl Debug for DelayedJob
Source§impl<'de> Deserialize<'de> for DelayedJob
impl<'de> Deserialize<'de> for DelayedJob
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 DelayedJob
impl RefUnwindSafe for DelayedJob
impl Send for DelayedJob
impl Sync for DelayedJob
impl Unpin for DelayedJob
impl UnsafeUnpin for DelayedJob
impl UnwindSafe for DelayedJob
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