pub struct RetryableTask {Show 17 fields
pub task_id: String,
pub retry_count: i32,
pub max_retries: i32,
pub retry_after_hours: f64,
pub retry_after_time: DateTime<Utc>,
pub task_data: String,
pub task_type: String,
pub last_error_obj: Option<String>,
pub last_job_error: Option<JobErrorReturn>,
pub rate_limit_group: Option<String>,
pub max_per_minute: Option<i32>,
pub auto_dedupe: Option<bool>,
pub urgency_score: Option<f64>,
pub payload_hash: Option<String>,
pub deleted_at: Option<DateTime<Utc>>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Fields§
§task_id: String§retry_count: i32§max_retries: i32§retry_after_hours: f64§retry_after_time: DateTime<Utc>§task_data: String§task_type: String§last_error_obj: Option<String>§last_job_error: Option<JobErrorReturn>§rate_limit_group: Option<String>§max_per_minute: Option<i32>§auto_dedupe: Option<bool>§urgency_score: Option<f64>§payload_hash: Option<String>§deleted_at: Option<DateTime<Utc>>§created_at: DateTime<Utc>§updated_at: DateTime<Utc>Implementations§
Source§impl RetryableTask
impl RetryableTask
pub fn new( task_id: String, task_type: String, task_data: String, max_retries: i32, retry_after_hours: f64, rate_limit_group: Option<String>, max_per_minute: Option<i32>, auto_dedupe: Option<bool>, urgency_score: Option<f64>, ) -> Self
pub fn mark_deleted(&mut self)
pub fn update_retry_config(&mut self, error_msg: Option<String>)
Trait Implementations§
Source§impl Clone for RetryableTask
impl Clone for RetryableTask
Source§fn clone(&self) -> RetryableTask
fn clone(&self) -> RetryableTask
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 RetryableTask
impl Debug for RetryableTask
Source§impl<'de> Deserialize<'de> for RetryableTask
impl<'de> Deserialize<'de> for RetryableTask
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 RetryableTask
impl RefUnwindSafe for RetryableTask
impl Send for RetryableTask
impl Sync for RetryableTask
impl Unpin for RetryableTask
impl UnsafeUnpin for RetryableTask
impl UnwindSafe for RetryableTask
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