pub async fn restore_from_code(
code: &str,
synced_tables: &[SyncedTable],
migrations: &[Migration],
coven_migration_policy: CovenMigrationPolicy,
exact_upload_verification: ExactUploadVerification,
transfer_limits: TransferLimits,
key_custody: KeyCustody,
identity_custody: IdentityCustody,
oauth_clients: OAuthClients,
oauth_tokens: Option<OAuthTokens>,
cloudkit_ops: Option<Arc<dyn CloudKitOps>>,
layout: &StoreLayout,
clock: Arc<dyn Clock>,
ids: Arc<dyn IdProvider>,
on_status: impl Fn(&str),
cancel: &Receiver<bool>,
) -> Result<Config, BootstrapError>Expand description
Restore a store from a restore code string.
Decodes the restore code, fills a RestoreSource from its join info plus
the caller-supplied OAuth tokens and CloudKit driver, imports the signing
key, and delegates to restore_from_cloud with the caller’s Coven migration
policy unchanged.