Struct rsync_list::Config [−][src]
#[non_exhaustive]pub struct Config<'a> { pub source: &'a OsStr, pub exclude: &'a [&'a OsStr], pub include: &'a [&'a OsStr], pub executable: &'a OsStr, pub links: bool, pub recursive: bool, }
Expand description
Configuration for a list.
Many options refernce the rsync command line options and syntax. See https://download.samba.org/pub/rsync/rsync.html for the reference documentation on those options.
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.source: &'a OsStr
The source to list.
Example: rsync://example.com/path Example: me@example.com:/path
These are the same syntax as the rsync command line.
exclude: &'a [&'a OsStr]
Patterns to exclude from the listing.
Example: www/*.gz
This corresponds to rsync’s –exclude flag.
include: &'a [&'a OsStr]
Patterns not to exclude..
Example: www/*.tar.gz
This corresponds to rsync’s –include flag.
executable: &'a OsStr
The rsync executable to use.
This will be looked for in $PATH
if it does not contain any directory
separators.
Default: rsync
links: bool
If links should be reported. If false
links will be reported as the
file that they point to.
Note: The last modified time will always be that of the link, not that of the target.
Default: true
recursive: bool
Recursively list the source.
Default: true
Implementations
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Config<'a>
impl<'a> UnwindSafe for Config<'a>