pub struct SaveSettings { /* private fields */ }Expand description
Settings to alter the behavior of creating snapshots saved within a Database.
Implementations§
Source§impl SaveSettings
impl SaveSettings
pub fn new() -> Ref<Self>
Sourcepub fn with_option(&self, option: SaveOption) -> Ref<Self>
pub fn with_option(&self, option: SaveOption) -> Ref<Self>
Sets the specified option to true and returns a ref counted SaveSettings that can
continued to be chained.
pub fn set_option(&self, option: SaveOption, value: bool)
pub fn option(&self, option: SaveOption) -> bool
Sourcepub fn snapshot_name(&self) -> String
pub fn snapshot_name(&self) -> String
When saving an automatic snapshot via FileMetadata::save_auto_snapshot this name will be
used for the newly written snapshot.
pub fn set_snapshot_name(&self, name: &str)
Trait Implementations§
Source§impl ToOwned for SaveSettings
impl ToOwned for SaveSettings
Source§type Owned = Ref<SaveSettings>
type Owned = Ref<SaveSettings>
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
impl Send for SaveSettings
impl Sync for SaveSettings
Auto Trait Implementations§
impl Freeze for SaveSettings
impl RefUnwindSafe for SaveSettings
impl Unpin for SaveSettings
impl UnwindSafe for SaveSettings
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