pub enum Include<'a> {
File {
filename: &'a str,
},
Sequence {
pattern: &'a str,
},
Mapping {
pattern: &'a str,
},
// some variants omitted
}
Expand description
The kind of include tag that encountered in config
Variants§
File
Looks like !Include some/file.yaml
Sequence
Looks like !*IncludeSeq some/*.yaml
It’s expected that included files are sorted (both glob
and
capturing_glob
support that).
Mapping
Looks like !*IncludeMap some/(*).yaml
.
Everything in parenthesis should be used as a key
Use capturing_glob
crate to parse and match files
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Include<'a>
impl<'a> RefUnwindSafe for Include<'a>
impl<'a> Send for Include<'a>
impl<'a> Sync for Include<'a>
impl<'a> Unpin for Include<'a>
impl<'a> UnwindSafe for Include<'a>
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