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: Variabletemplates: Vec<String>variables: Vec<NamedVariable>branch: Variableworktree: Variableclone_depth: i64is_single_branch: boolis_symlink: boolis_bare_repository: boolis_worktree: bool

Implementations

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 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.