pub struct Ledger {Show 16 fields
pub scope: Option<String>,
pub pending_consent: Option<ConsentRequest>,
pub withheld: BTreeSet<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).
pending_consent: Option<ConsentRequest>Set while sync is paused on a scope change awaiting consent
(SyncConfig::require_consent_on_scope_change). Durable with the bound scope.
withheld: BTreeSet<String>Item ids that existed locally when the user chose ConsentChoice::StartFresh: they stay
on this device and are never published to the new account.
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: Extras