#[non_exhaustive]pub struct BackupOptions {
pub stdin_filename: String,
pub stdin_command: Option<CommandInput>,
pub as_path: Option<PathBuf>,
pub no_scan: bool,
pub dry_run: bool,
pub parent_opts: ParentOptions,
pub ignore_save_opts: LocalSourceSaveOptions,
pub ignore_filter_opts: LocalSourceFilterOptions,
}
Expand description
Options for the backup
command.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.stdin_filename: String
Set filename to be used when backing up from stdin
stdin_command: Option<CommandInput>
Call the given command and use its output as stdin
as_path: Option<PathBuf>
Manually set backup path in snapshot
no_scan: bool
Don’t scan the backup source for its size - this disables ETA estimation for backup.
dry_run: bool
Dry-run mode: Don’t write any data or snapshot
parent_opts: ParentOptions
Options how to use a parent snapshot
ignore_save_opts: LocalSourceSaveOptions
Options how to save entries from a local source
ignore_filter_opts: LocalSourceFilterOptions
Options how to filter from a local source
Implementations§
Source§impl BackupOptions
impl BackupOptions
Sourcepub fn stdin_filename(self, value: impl Into<String>) -> Self
pub fn stdin_filename(self, value: impl Into<String>) -> Self
Sets the stdin_filename
field of this struct.
Sourcepub fn stdin_command(self, value: impl Into<Option<CommandInput>>) -> Self
pub fn stdin_command(self, value: impl Into<Option<CommandInput>>) -> Self
Sets the stdin_command
field of this struct.
Sourcepub fn as_path(self, value: impl Into<Option<PathBuf>>) -> Self
pub fn as_path(self, value: impl Into<Option<PathBuf>>) -> Self
Sets the as_path
field of this struct.
Sourcepub fn parent_opts(self, value: impl Into<ParentOptions>) -> Self
pub fn parent_opts(self, value: impl Into<ParentOptions>) -> Self
Sets the parent_opts
field of this struct.
Sourcepub fn ignore_save_opts(self, value: impl Into<LocalSourceSaveOptions>) -> Self
pub fn ignore_save_opts(self, value: impl Into<LocalSourceSaveOptions>) -> Self
Sets the ignore_save_opts
field of this struct.
Sourcepub fn ignore_filter_opts(
self,
value: impl Into<LocalSourceFilterOptions>,
) -> Self
pub fn ignore_filter_opts( self, value: impl Into<LocalSourceFilterOptions>, ) -> Self
Sets the ignore_filter_opts
field of this struct.
Trait Implementations§
Source§impl Args for BackupOptions
impl Args for BackupOptions
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command
so it can instantiate self
via
FromArgMatches::update_from_arg_matches_mut
Read moreSource§impl Clone for BackupOptions
impl Clone for BackupOptions
Source§fn clone(&self) -> BackupOptions
fn clone(&self) -> BackupOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl CommandFactory for BackupOptions
impl CommandFactory for BackupOptions
Source§impl Debug for BackupOptions
impl Debug for BackupOptions
Source§impl Default for BackupOptions
impl Default for BackupOptions
Source§fn default() -> BackupOptions
fn default() -> BackupOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BackupOptionswhere
BackupOptions: Default,
impl<'de> Deserialize<'de> for BackupOptionswhere
BackupOptions: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromArgMatches for BackupOptions
impl FromArgMatches for BackupOptions
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§impl Merge for BackupOptions
impl Merge for BackupOptions
Source§impl Parser for BackupOptions
impl Parser for BackupOptions
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for BackupOptions
impl RefUnwindSafe for BackupOptions
impl Send for BackupOptions
impl Sync for BackupOptions
impl Unpin for BackupOptions
impl UnwindSafe for BackupOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MergeFrom for Twhere
T: Merge,
impl<T> MergeFrom for Twhere
T: Merge,
Source§fn merge_from(self, other: Self) -> Selfwhere
Self: Sized,
fn merge_from(self, other: Self) -> Selfwhere
Self: Sized,
Merges two instances of a type into a new instance. Read more