Skip to main content
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: String

ID of the snapshot to restore. Leave empty to restore the most recent snapshot in the backup.

checksum: String

Whether or not to verify checksums for backup files when restoring. Server default: false.

cascade_foreign_keys: String

Whether 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: String

Behavior to apply when the schema containing any database object to restore does not already exist. Server default: true.

ddl_only: String

Behavior to apply when restoring tables. Server default: false.

dry_run: String

Whether 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: String

Behavior to apply when restoring datasource subscriptions on tables. Server default: resume.

reingest: String

Behavior to apply when restoring table data. Server default: false.

renamed_objects_schema: String

If the restore_policy is rename, use this schema for relocated existing objects instead of the default generated one.

restore_all_permissions: String

Whether 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: String

Behavior to apply when any database object to restore already exists. Server default: none.

target_schema_map: String

Restore 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

Source

pub fn to_map(&self) -> HashMap<String, String>

Converts the set (non-empty) options into the wire-format string map.

Trait Implementations

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source

fn fmt(&self, f: &mut Formatter<’_>) -> Result

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more