pub struct Ledger {Show 14 fields
pub scope: Option<String>,
pub change_token: Option<Vec<u8>>,
pub has_synced: bool,
pub tombstones: BTreeMap<String, i64>,
pub pending_tombstones: BTreeSet<String>,
pub remote_versions: BTreeMap<String, RemoteVersion>,
pub aliases: BTreeMap<String, BTreeSet<String>>,
pub pending_uploads: BTreeSet<String>,
pub pending_apply: BTreeMap<String, RawRecord>,
pub retry_after_ms: Option<i64>,
pub consecutive_failures: u32,
pub quarantined_total: u64,
pub flags: BTreeSet<String>,
pub extras: Extras,
}Fields§
§scope: Option<String>Account scope this ledger belongs to (AuthProvider::account_scope).
change_token: Option<Vec<u8>>§has_synced: bool§tombstones: BTreeMap<String, i64>Item id -> deletion time. Blocks re-import and re-upload forever.
pending_tombstones: BTreeSet<String>Tombstones still to be written to the zone.
remote_versions: BTreeMap<String, RemoteVersion>Last version known to exist remotely (survives cursor-only deltas).
aliases: BTreeMap<String, BTreeSet<String>>Logical id -> every record name seen for it (legacy duplicates).
pending_uploads: BTreeSet<String>Offline queue: ids with local changes not yet confirmed uploaded.
pending_apply: BTreeMap<String, RawRecord>Downloaded records whose local apply was deferred.
retry_after_ms: Option<i64>Wall-clock ms before which no pass runs (backoff / server hint).
consecutive_failures: u32§quarantined_total: u64§flags: BTreeSet<String>One-shot migration markers (e.g. a full replay already done).
extras: ExtrasImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Ledger
impl<'de> Deserialize<'de> for Ledger
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 Ledger
impl RefUnwindSafe for Ledger
impl Send for Ledger
impl Sync for Ledger
impl Unpin for Ledger
impl UnsafeUnpin for Ledger
impl UnwindSafe for Ledger
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