Enum quire::Include [−][src]
pub enum Include<'a> { File { filename: &'a str, }, Sequence { pattern: &'a str, }, Mapping { pattern: &'a str, }, // some variants omitted }
The kind of include tag that encountered in config
Variants
File
Looks like !Include some/file.yaml
Fields of File
filename: &'a str |
Sequence
Looks like !*IncludeSeq some/*.yaml
It's expected that included files are sorted (both glob
and
capturing_glob
support that).
Fields of Sequence
pattern: &'a str |
Mapping
Looks like !*IncludeMap some/(*).yaml
.
Everything in parenthesis should be used as a key
Use capturing_glob
crate to parse and match files
Fields of Mapping
pattern: &'a str |