Struct garden::model::Configuration
source · pub struct Configuration {Show 17 fields
pub commands: MultiVariableHashMap,
pub debug: HashMap<String, u8>,
pub environment: Vec<MultiVariable>,
pub gardens: GardenMap,
pub grafts: IndexMap<GraftName, Graft>,
pub groups: GroupMap,
pub path: Option<PathBuf>,
pub dirname: Option<PathBuf>,
pub root: Variable,
pub root_path: PathBuf,
pub shell: String,
pub templates: HashMap<String, Template>,
pub tree_search_path: Vec<PathBuf>,
pub trees: IndexMap<TreeName, Tree>,
pub variables: VariableHashMap,
pub override_variables: VariableHashMap,
pub verbose: u8,
/* private fields */
}
Expand description
Configuration represents an instantiated garden configuration
Fields§
§commands: MultiVariableHashMap
§debug: HashMap<String, u8>
§environment: Vec<MultiVariable>
§gardens: GardenMap
§grafts: IndexMap<GraftName, Graft>
§groups: GroupMap
§path: Option<PathBuf>
§dirname: Option<PathBuf>
§root: Variable
§root_path: PathBuf
§shell: String
§templates: HashMap<String, Template>
§tree_search_path: Vec<PathBuf>
§trees: IndexMap<TreeName, Tree>
§variables: VariableHashMap
§override_variables: VariableHashMap
Variables defined on the command-line using “-D name=value” have the highest precedence and override variables defined by any configuration or tree.
verbose: u8
Implementations§
source§impl Configuration
impl Configuration
Trait Implementations§
source§impl Clone for Configuration
impl Clone for Configuration
source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Configuration
impl Debug for Configuration
source§impl Default for Configuration
impl Default for Configuration
source§fn default() -> Configuration
fn default() -> Configuration
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for Configuration
impl Send for Configuration
impl !Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
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