Struct garden::model::Tree

source ·
pub struct Tree {
Show 14 fields pub commands: Vec<MultiVariable>, pub environment: Vec<MultiVariable>, pub gitconfig: Vec<NamedVariable>, pub remotes: Vec<NamedVariable>, pub symlink: Variable, pub templates: Vec<String>, pub variables: Vec<NamedVariable>, pub branch: Variable, pub worktree: Variable, pub clone_depth: i64, pub is_single_branch: bool, pub is_symlink: bool, pub is_bare_repository: bool, pub is_worktree: bool, /* private fields */
}
Expand description

Trees represent a single worktree

Fields§

§commands: Vec<MultiVariable>§environment: Vec<MultiVariable>§gitconfig: Vec<NamedVariable>§remotes: Vec<NamedVariable>§symlink: Variable§templates: Vec<String>§variables: Vec<NamedVariable>§branch: Variable§worktree: Variable§clone_depth: i64§is_single_branch: bool§is_symlink: bool§is_bare_repository: bool§is_worktree: bool

Implementations§

Build a canonicalized pathbuf for the current tree.

Build a pathbuf for the current tree.

Copy the guts of another tree into the current tree.

Update internal flags in response to newly read data.

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 alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
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.