pub struct Configuration {
Show 16 fields pub commands: Vec<MultiVariable>, pub debug: HashSet<String>, pub environment: Vec<MultiVariable>, pub gardens: Vec<Garden>, pub grafts: Vec<Graft>, pub groups: Vec<Group>, pub path: Option<PathBuf>, pub dirname: Option<PathBuf>, pub root: Variable, pub root_path: PathBuf, pub shell: String, pub templates: Vec<Template>, pub tree_search_path: Vec<PathBuf>, pub trees: Vec<Tree>, pub variables: Vec<NamedVariable>, pub verbose: bool, /* private fields */
}

Fields

commands: Vec<MultiVariable>debug: HashSet<String>environment: Vec<MultiVariable>gardens: Vec<Garden>grafts: Vec<Graft>groups: Vec<Group>path: Option<PathBuf>dirname: Option<PathBuf>root: Variableroot_path: PathBufshell: Stringtemplates: Vec<Template>tree_search_path: Vec<PathBuf>trees: Vec<Tree>variables: Vec<NamedVariable>verbose: bool

Implementations

Create a default Configuration

Return a path string relative to the garden root

Evaluate and return a path string relative to the garden root.

Resolve a path string relative to the config dir.

Evaluate and resolve a path string and relative to the config dir.

Reset resolved variables

Set the ConfigId from the Arena for this configuration.

Set the parent ConfigId from the Arena for this configuration.

Set the config path and the dirname fields

Get the config path if it is defined.

Return true if the configuration contains the named graft.

Return a graft by name.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.