Struct stager::builder::SourceFiles
[−]
[src]
pub struct SourceFiles { pub path: PathBuf, pub pattern: Vec<String>, pub follow_links: bool, pub allow_empty: bool, pub access: Vec<Access>, }
Specifies a collection of files to be staged into the target directory.
Fields
path: PathBuf
Specifies the root path that pattern
will be run on to identify files to be copied into
the target directory.
pattern: Vec<String>
Specifies the pattern
for executing the recursive/multifile match.
pattern
uses gitignore syntax.
follow_links: bool
allow_empty: bool
Toggles whether no results for the pattern constitutes an error.
Generally, the default of false
is best because it makes mistakes more obvious. An
example of when no results are acceptable is a default staging configuration that
implements a lot of default "good enough" policy.
access: Vec<Access>
Trait Implementations
impl Clone for SourceFiles
[src]
fn clone(&self) -> SourceFiles
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for SourceFiles
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more