pub struct Selection {
pub reset: Option<Reset>,
pub untracked: bool,
pub ignored: bool,
pub vendor: bool,
pub env: bool,
}Expand description
What a run was asked to do, however it was asked.
The defaults are the safe ones and they are the same whether they came from flags or from prompts: nothing is reset, nothing is removed, and vendor and env are excluded even from a list the user did ask for.
Fields§
§reset: Option<Reset>Whether to reset tracked changes, and how far.
untracked: boolWhether to remove untracked files.
ignored: boolWhether to remove ignored files.
vendor: boolWhether vendored dependency directories are in scope. Off by default: node_modules
is the most expensive thing on the list to get back.
env: boolWhether env files are in scope. Off by default: a .env is usually the only copy of
what is in it, and no command regenerates it.
Implementations§
Trait Implementations§
impl Copy for Selection
impl Eq for Selection
impl StructuralPartialEq for Selection
Auto Trait Implementations§
impl Freeze for Selection
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnsafeUnpin for Selection
impl UnwindSafe for Selection
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more