Struct garden::model::Tree [−][src]
pub struct Tree { pub commands: Vec<MultiVariable>, pub environment: Vec<MultiVariable>, pub gitconfig: Vec<NamedVariable>, pub is_symlink: bool, pub remotes: Vec<NamedVariable>, pub symlink: Variable, pub templates: Vec<String>, pub variables: Vec<NamedVariable>, // some fields omitted }
Fields
commands: Vec<MultiVariable>
environment: Vec<MultiVariable>
gitconfig: Vec<NamedVariable>
is_symlink: bool
remotes: Vec<NamedVariable>
symlink: Variable
templates: Vec<String>
variables: Vec<NamedVariable>
Implementations
impl Tree
[src]
impl Tree
[src]pub fn get_name(&self) -> &String
[src]
pub fn get_name_mut(&mut self) -> &mut String
[src]
pub fn get_path(&self) -> &Variable
[src]
pub fn get_path_mut(&mut self) -> &mut Variable
[src]
pub fn path_is_valid(&self) -> bool
[src]
pub fn path_as_ref(&self) -> Result<&String, GardenError>
[src]
pub fn symlink_as_ref(&self) -> Result<&String, GardenError>
[src]
pub fn reset_variables(&self)
[src]
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Tree
impl Send for Tree
impl !Sync for Tree
impl Unpin for Tree
impl UnwindSafe for Tree
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more