pub struct BackgroundTask {Show 27 fields
pub id: String,
pub url: Option<String>,
pub description: String,
pub origin: String,
pub func_name: String,
pub args: Option<Vec<Value>>,
pub kwargs: Option<HashMap<String, Value>>,
pub result: String,
pub timeout: i32,
pub result_ttl: i32,
pub created_at: String,
pub enqueued_at: String,
pub started_at: String,
pub ended_at: String,
pub worker_name: String,
pub position: Option<i32>,
pub status: Option<String>,
pub meta: HashMap<String, Value>,
pub last_heartbeat: String,
pub is_finished: bool,
pub is_queued: bool,
pub is_failed: bool,
pub is_started: bool,
pub is_deferred: bool,
pub is_canceled: bool,
pub is_scheduled: bool,
pub is_stopped: bool,
}Fields§
§id: String§url: Option<String>§description: String§origin: String§func_name: String§args: Option<Vec<Value>>§kwargs: Option<HashMap<String, Value>>§result: String§timeout: i32§result_ttl: i32§created_at: String§enqueued_at: String§started_at: String§ended_at: String§worker_name: String§position: Option<i32>§status: Option<String>§meta: HashMap<String, Value>§last_heartbeat: String§is_finished: bool§is_queued: bool§is_failed: bool§is_started: bool§is_deferred: bool§is_canceled: bool§is_scheduled: bool§is_stopped: boolImplementations§
Source§impl BackgroundTask
impl BackgroundTask
pub fn new( id: String, description: String, origin: String, func_name: String, result: String, timeout: i32, result_ttl: i32, created_at: String, enqueued_at: String, started_at: String, ended_at: String, worker_name: String, meta: HashMap<String, Value>, last_heartbeat: String, is_finished: bool, is_queued: bool, is_failed: bool, is_started: bool, is_deferred: bool, is_canceled: bool, is_scheduled: bool, is_stopped: bool, ) -> BackgroundTask
Trait Implementations§
Source§impl Clone for BackgroundTask
impl Clone for BackgroundTask
Source§fn clone(&self) -> BackgroundTask
fn clone(&self) -> BackgroundTask
Returns a duplicate of the value. Read more
1.0.0 · 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 BackgroundTask
impl Debug for BackgroundTask
Source§impl Default for BackgroundTask
impl Default for BackgroundTask
Source§fn default() -> BackgroundTask
fn default() -> BackgroundTask
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BackgroundTask
impl<'de> Deserialize<'de> for BackgroundTask
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
Source§impl PartialEq for BackgroundTask
impl PartialEq for BackgroundTask
Source§impl Serialize for BackgroundTask
impl Serialize for BackgroundTask
impl StructuralPartialEq for BackgroundTask
Auto Trait Implementations§
impl Freeze for BackgroundTask
impl RefUnwindSafe for BackgroundTask
impl Send for BackgroundTask
impl Sync for BackgroundTask
impl Unpin for BackgroundTask
impl UnwindSafe for BackgroundTask
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