#[non_exhaustive]pub struct LocalSourceFilterOptions {
pub globs: Vec<String>,
pub iglobs: Vec<String>,
pub glob_files: Vec<String>,
pub iglob_files: Vec<String>,
pub git_ignore: bool,
pub no_require_git: bool,
pub custom_ignorefiles: Vec<String>,
pub exclude_if_present: Vec<String>,
pub one_file_system: bool,
pub exclude_larger_than: Option<ByteSize>,
}
Expand description
LocalSourceFilterOptions
allow to filter a local source by various criteria.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.globs: Vec<String>
Glob pattern to exclude/include (can be specified multiple times)
iglobs: Vec<String>
Same as –glob pattern but ignores the casing of filenames
glob_files: Vec<String>
Read glob patterns to exclude/include from this file (can be specified multiple times)
iglob_files: Vec<String>
Same as –glob-file ignores the casing of filenames in patterns
git_ignore: bool
Ignore files based on .gitignore files
no_require_git: bool
Do not require a git repository to apply git-ignore rule
custom_ignorefiles: Vec<String>
Treat the provided filename like a .gitignore file (can be specified multiple times)
exclude_if_present: Vec<String>
Exclude contents of directories containing this filename (can be specified multiple times)
one_file_system: bool
Exclude other file systems, don’t cross filesystem boundaries and subvolumes
exclude_larger_than: Option<ByteSize>
Maximum size of files to be backed up. Larger files will be excluded.
Implementations§
Source§impl LocalSourceFilterOptions
impl LocalSourceFilterOptions
Sourcepub fn iglobs(self, value: impl Into<Vec<String>>) -> Self
pub fn iglobs(self, value: impl Into<Vec<String>>) -> Self
Sets the iglobs
field of this struct.
Sourcepub fn glob_files(self, value: impl Into<Vec<String>>) -> Self
pub fn glob_files(self, value: impl Into<Vec<String>>) -> Self
Sets the glob_files
field of this struct.
Sourcepub fn iglob_files(self, value: impl Into<Vec<String>>) -> Self
pub fn iglob_files(self, value: impl Into<Vec<String>>) -> Self
Sets the iglob_files
field of this struct.
Sourcepub fn git_ignore(self, value: impl Into<bool>) -> Self
pub fn git_ignore(self, value: impl Into<bool>) -> Self
Sets the git_ignore
field of this struct.
Sourcepub fn no_require_git(self, value: impl Into<bool>) -> Self
pub fn no_require_git(self, value: impl Into<bool>) -> Self
Sets the no_require_git
field of this struct.
Sourcepub fn custom_ignorefiles(self, value: impl Into<Vec<String>>) -> Self
pub fn custom_ignorefiles(self, value: impl Into<Vec<String>>) -> Self
Sets the custom_ignorefiles
field of this struct.
Sourcepub fn exclude_if_present(self, value: impl Into<Vec<String>>) -> Self
pub fn exclude_if_present(self, value: impl Into<Vec<String>>) -> Self
Sets the exclude_if_present
field of this struct.
Sourcepub fn one_file_system(self, value: impl Into<bool>) -> Self
pub fn one_file_system(self, value: impl Into<bool>) -> Self
Sets the one_file_system
field of this struct.
Sourcepub fn exclude_larger_than(self, value: impl Into<Option<ByteSize>>) -> Self
pub fn exclude_larger_than(self, value: impl Into<Option<ByteSize>>) -> Self
Sets the exclude_larger_than
field of this struct.
Trait Implementations§
Source§impl Args for LocalSourceFilterOptions
impl Args for LocalSourceFilterOptions
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
Command
so it can instantiate self
via
FromArgMatches::update_from_arg_matches_mut
Read moreSource§impl Clone for LocalSourceFilterOptions
impl Clone for LocalSourceFilterOptions
Source§fn clone(&self) -> LocalSourceFilterOptions
fn clone(&self) -> LocalSourceFilterOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LocalSourceFilterOptions
impl Debug for LocalSourceFilterOptions
Source§impl Default for LocalSourceFilterOptions
impl Default for LocalSourceFilterOptions
Source§fn default() -> LocalSourceFilterOptions
fn default() -> LocalSourceFilterOptions
Source§impl<'de> Deserialize<'de> for LocalSourceFilterOptionswhere
LocalSourceFilterOptions: Default,
impl<'de> Deserialize<'de> for LocalSourceFilterOptionswhere
LocalSourceFilterOptions: 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>,
Source§impl FromArgMatches for LocalSourceFilterOptions
impl FromArgMatches for LocalSourceFilterOptions
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>
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>
ArgMatches
to self
.Source§impl Merge for LocalSourceFilterOptions
impl Merge for LocalSourceFilterOptions
Source§impl Parser for LocalSourceFilterOptions
impl Parser for LocalSourceFilterOptions
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, 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 LocalSourceFilterOptions
impl RefUnwindSafe for LocalSourceFilterOptions
impl Send for LocalSourceFilterOptions
impl Sync for LocalSourceFilterOptions
impl Unpin for LocalSourceFilterOptions
impl UnwindSafe for LocalSourceFilterOptions
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
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>
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>
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 more