Struct garden::model::Configuration
source · pub struct Configuration {Show 21 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_is_dynamic: bool,
pub root_path: PathBuf,
pub shell: String,
pub interactive_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 config_verbose: u8,
pub quiet: bool,
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_is_dynamic: bool
§root_path: PathBuf
§shell: String
§interactive_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.
config_verbose: u8
§quiet: bool
§verbose: u8
Implementations§
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 !Freeze for Configuration
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more