pub struct RestoreBackupRequestOptions
pub backup_id: String,
pub checksum: String,
pub cascade_foreign_keys: String,
pub create_schema_if_not_exist: String,
pub ddl_only: String,
pub dry_run: String,
pub restore_subscriptions: String,
pub reingest: String,
pub renamed_objects_schema: String,
pub restore_all_permissions: String,
pub restore_policy: String,
pub target_schema_map: String,
Optional parameters for the /restore/backup endpoint.
Default::default() is the empty set: only options set explicitly are sent, and anything left empty falls back to the server’s own default.
Fields
backup_id: StringID of the snapshot to restore. Leave empty to restore the most recent snapshot in the backup.
checksum: StringWhether or not to verify checksums for backup files when restoring. Server default: false.
cascade_foreign_keys: StringWhether to drop live foreign-key-referencing tables that are not themselves part of the backup, when the table they reference is being replaced. Only applies when restore_policy is replace. Server default: false.
create_schema_if_not_exist: StringBehavior to apply when the schema containing any database object to restore does not already exist. Server default: true.
ddl_only: StringBehavior to apply when restoring tables. Server default: false.
dry_run: StringWhether or not to perform a dry run of the restoration operation. With a restore_policy of clean or clean_all, a dry run lists the objects the clean would drop in the clean_dropped_objects entry of the response info map and drops nothing, and fails as the restore would if the clean is refused. Server default: false.
restore_subscriptions: StringBehavior to apply when restoring datasource subscriptions on tables. Server default: resume.
reingest: StringBehavior to apply when restoring table data. Server default: false.
renamed_objects_schema: StringIf the restore_policy is rename, use this schema for relocated existing objects instead of the default generated one.
restore_all_permissions: StringWhether or not all permissions of restored principals should be restored or scoped to the restored objects. When restore_policy is clean or clean_all, the default is true: the clean drops each principal in scope along with all of its permissions, including those on objects it does not drop. Server default: false.
restore_policy: StringBehavior to apply when any database object to restore already exists. Server default: none.
target_schema_map: StringRestore schema-based objects to alternate schema. Value is a comma delimitted list of key:value pairs mapping the original (source) schema name as it exists in the backup to a target (destination) schema namespace: “src: dst [, src: dst [, …]]”. Note that schema names are case sensitive and must adhere to the database schema naming criteria.
Implementations
Trait Implementations
impl Clone for RestoreBackupRequestOptions
fn clone(&self) -> RestoreBackupRequestOptions
fn clone_from(&mut self, source: &Self)
source. Read more