pub struct RestoreOptions {
pub overwrite: bool,
pub skip_checksum: bool,
pub allow_newer_schema: bool,
}Available on crate feature
sqlite only.Expand description
Options controlling restore_from.
Fields§
§overwrite: boolReplace an existing non-empty target database.
skip_checksum: boolSkip the manifest checksum verification (strongly discouraged; intended only for recovering a backup whose manifest was lost).
allow_newer_schema: boolAllow restoring a backup whose schema is newer than this binary knows. Unsafe — provided only as a break-glass escape hatch.
Trait Implementations§
Source§impl Clone for RestoreOptions
impl Clone for RestoreOptions
Source§fn clone(&self) -> RestoreOptions
fn clone(&self) -> RestoreOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RestoreOptions
impl Debug for RestoreOptions
Source§impl Default for RestoreOptions
impl Default for RestoreOptions
Source§fn default() -> RestoreOptions
fn default() -> RestoreOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RestoreOptions
impl RefUnwindSafe for RestoreOptions
impl Send for RestoreOptions
impl Sync for RestoreOptions
impl Unpin for RestoreOptions
impl UnsafeUnpin for RestoreOptions
impl UnwindSafe for RestoreOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more