pub enum GitRepositorySelection {
Worktree {
root: PathBuf,
role: GitWorktreeRole,
administrative_directory: PathBuf,
},
CommonManager {
source_selection: GitManagerSourceSelection,
},
}Expand description
Selection made from the supplied path.
Variants§
Worktree
The supplied path was inside one exact checked-out worktree.
Fields
§
role: GitWorktreeRoleStructural role of the selected worktree.
CommonManager
The supplied path addressed the common control directory instead of source.
Fields
§
source_selection: GitManagerSourceSelectionWhether the structurally active inventory permits automatic source selection.
Trait Implementations§
Source§impl Clone for GitRepositorySelection
impl Clone for GitRepositorySelection
Source§fn clone(&self) -> GitRepositorySelection
fn clone(&self) -> GitRepositorySelection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GitRepositorySelection
impl Debug for GitRepositorySelection
impl Eq for GitRepositorySelection
Source§impl PartialEq for GitRepositorySelection
impl PartialEq for GitRepositorySelection
Source§fn eq(&self, other: &GitRepositorySelection) -> bool
fn eq(&self, other: &GitRepositorySelection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GitRepositorySelection
Auto Trait Implementations§
impl Freeze for GitRepositorySelection
impl RefUnwindSafe for GitRepositorySelection
impl Send for GitRepositorySelection
impl Sync for GitRepositorySelection
impl Unpin for GitRepositorySelection
impl UnsafeUnpin for GitRepositorySelection
impl UnwindSafe for GitRepositorySelection
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.