pub struct TaskMetaEntity {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: i64Trait Implementations§
Source§impl Clone for TaskMetaEntity
impl Clone for TaskMetaEntity
Source§fn clone(&self) -> TaskMetaEntity
fn clone(&self) -> TaskMetaEntity
Returns a copy 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 TaskMetaEntity
impl Debug for TaskMetaEntity
Source§impl<'de> Deserialize<'de> for TaskMetaEntity
impl<'de> Deserialize<'de> for TaskMetaEntity
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.
Source§impl Model for TaskMetaEntity
impl Model for TaskMetaEntity
fn native_model_id() -> u32
fn native_model_id_str() -> &'static str
fn native_model_version() -> u32
fn native_model_version_str() -> &'static str
fn native_model_encode_body(&self) -> Result<Vec<u8>, EncodeBodyError>
fn native_model_encode_downgrade_body(self, version: u32) -> Result<Vec<u8>>
fn native_model_decode_body( data: Vec<u8>, id: u32, ) -> Result<Self, DecodeBodyError>
fn native_model_decode_upgrade_body( data: Vec<u8>, id: u32, version: u32, ) -> Result<Self>
fn native_model_decode(data: Vec<u8>) -> Result<(Self, u32), Error>where
Self: Sized,
fn native_model_encode(&self) -> Result<Vec<u8>, Error>where
Self: Sized,
fn native_model_encode_downgrade(self, version: u32) -> Result<Vec<u8>, Error>where
Self: Sized,
Source§impl PartialEq for TaskMetaEntity
impl PartialEq for TaskMetaEntity
Source§impl Serialize for TaskMetaEntity
impl Serialize for TaskMetaEntity
Source§impl ToInput for TaskMetaEntity
impl ToInput for TaskMetaEntity
fn native_db_bincode_encode_to_vec(&self) -> Result<Vec<u8>>
fn native_db_bincode_decode_from_slice(slice: &[u8]) -> Result<Self>
fn native_db_model() -> Model
fn native_db_primary_key(&self) -> Key
fn native_db_secondary_keys( &self, ) -> HashMap<KeyDefinition<KeyOptions>, KeyEntry>
fn native_db_input(&self) -> Result<Input, Error>
impl Eq for TaskMetaEntity
impl StructuralPartialEq for TaskMetaEntity
Auto Trait Implementations§
impl Freeze for TaskMetaEntity
impl RefUnwindSafe for TaskMetaEntity
impl Send for TaskMetaEntity
impl Sync for TaskMetaEntity
impl Unpin for TaskMetaEntity
impl UnwindSafe for TaskMetaEntity
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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