pub struct SyncTask {
pub id: Option<i64>,
pub profile_id: i32,
pub task_type: SyncTaskType,
pub pipeline: SyncPipeline,
pub status: TaskStatus,
pub attempts: i32,
pub last_error: Option<String>,
pub created_at: Option<DateTime<Utc>>,
pub next_retry_at: Option<DateTime<Utc>>,
pub completed_at: Option<DateTime<Utc>>,
}Expand description
Sync task for queue
Fields§
§id: Option<i64>§profile_id: i32§task_type: SyncTaskType§pipeline: SyncPipeline§status: TaskStatus§attempts: i32§last_error: Option<String>§created_at: Option<DateTime<Utc>>§next_retry_at: Option<DateTime<Utc>>§completed_at: Option<DateTime<Utc>>Implementations§
Source§impl SyncTask
impl SyncTask
pub fn new( profile_id: i32, pipeline: SyncPipeline, task_type: SyncTaskType, ) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SyncTask
impl<'de> Deserialize<'de> for SyncTask
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 SyncTask
impl RefUnwindSafe for SyncTask
impl Send for SyncTask
impl Sync for SyncTask
impl Unpin for SyncTask
impl UnsafeUnpin for SyncTask
impl UnwindSafe for SyncTask
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