pub struct TaskMeta {Show 24 fields
pub id: String,
pub task_key: String,
pub task_params: String,
pub queue_name: String,
pub updated_at: i64,
pub status: TaskStatus,
pub stopped_reason: Option<String>,
pub last_error: Option<String>,
pub last_run: i64,
pub next_run: i64,
pub kind: TaskKind,
pub success_count: u32,
pub failure_count: u32,
pub runner_id: Option<String>,
pub retry_strategy: Retry,
pub retry_interval: u32,
pub base_interval: u32,
pub delay_seconds: u32,
pub max_retries: Option<u32>,
pub cron_schedule: Option<String>,
pub cron_timezone: Option<String>,
pub is_repeating: bool,
pub repeat_interval: u32,
pub heartbeat_at: i64,
}Fields§
§id: String§task_key: String§task_params: String§queue_name: String§updated_at: i64§status: TaskStatus§stopped_reason: Option<String>§last_error: Option<String>§last_run: i64§next_run: i64§kind: TaskKind§success_count: u32§failure_count: u32§runner_id: Option<String>§retry_strategy: Retry§retry_interval: u32§base_interval: u32§delay_seconds: u32§max_retries: Option<u32>§cron_schedule: Option<String>§cron_timezone: Option<String>§is_repeating: bool§repeat_interval: u32§heartbeat_at: i64Implementations§
Source§impl TaskMeta
impl TaskMeta
pub fn new( task_key: String, task_params: String, queue_name: String, kind: TaskKind, retry_policy: RetryPolicy, cron_schedule: Option<String>, cron_timezone: Option<String>, is_repeating: bool, repeat_interval: Option<u32>, delay_seconds: u32, ) -> Self
pub fn retry_policy(&self) -> RetryPolicy
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaskMeta
impl<'de> Deserialize<'de> for TaskMeta
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 From<TaskMeta> for TaskMetaEntity
impl From<TaskMeta> for TaskMetaEntity
Source§impl From<TaskMetaEntity> for TaskMeta
impl From<TaskMetaEntity> for TaskMeta
Source§fn from(entity: TaskMetaEntity) -> Self
fn from(entity: TaskMetaEntity) -> Self
Converts to this type from the input type.
impl Eq for TaskMeta
impl StructuralPartialEq for TaskMeta
Auto Trait Implementations§
impl Freeze for TaskMeta
impl RefUnwindSafe for TaskMeta
impl Send for TaskMeta
impl Sync for TaskMeta
impl Unpin for TaskMeta
impl UnwindSafe for TaskMeta
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more