pub struct SyncState {
pub source_id: String,
pub source_type: String,
pub source_repo: Option<String>,
pub last_cursor: Option<String>,
pub last_synced_at: Option<DateTime<Utc>>,
pub next_run_at: Option<DateTime<Utc>>,
pub status: SyncStatus,
pub error_message: Option<String>,
pub retry_count: i32,
pub items_found: i32,
}Expand description
Sync state for a source.
Fields§
§source_id: String§source_type: String§source_repo: Option<String>§last_cursor: Option<String>§last_synced_at: Option<DateTime<Utc>>§next_run_at: Option<DateTime<Utc>>§status: SyncStatus§error_message: Option<String>§retry_count: i32§items_found: i32Trait Implementations§
Source§impl<'de> Deserialize<'de> for SyncState
impl<'de> Deserialize<'de> for SyncState
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 SyncState
impl RefUnwindSafe for SyncState
impl Send for SyncState
impl Sync for SyncState
impl Unpin for SyncState
impl UnsafeUnpin for SyncState
impl UnwindSafe for SyncState
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