pub struct SyncConfig {
pub batch_size: usize,
pub tombstone_batch: usize,
pub ordered_new_publication: bool,
pub infer_local_deletions: bool,
pub require_consent_on_scope_change: bool,
pub backoff: BackoffPolicy,
}Fields§
§batch_size: usizeUpload chunk size for edits to records that already exist remotely.
tombstone_batch: usizeTombstone write chunk size.
ordered_new_publication: boolPublish never-seen items one record per save, oldest first, and stop new publication for the pass after the first failure (preserves history order: CloudKit gives no ordering inside one operation).
infer_local_deletions: boolTreat a known-published item that vanished from the local store as a
local deletion (desktop). Apps with explicit note_deleted calls
(iOS) leave this off.
require_consent_on_scope_change: boolWhen the signed-in account or scope differs from the one the ledger is bound to, pause
instead of resetting the ledger and publishing local history into the new account. The
pass reports PassOutcome::ConsentRequired and uploads, downloads and writes nothing
until the app calls SyncEngine::grant_consent. Default false (the earlier silent
reset), so existing apps keep their behaviour.
backoff: BackoffPolicy