pub struct GitIgnoreStatus {
pub is_ignored: bool,
pub matched_pattern: Option<String>,
pub is_tracked: bool,
pub should_be_ignored: bool,
pub risk_level: GitIgnoreRisk,
}Expand description
Result of gitignore analysis for a file
Fields§
§is_ignored: bool§matched_pattern: Option<String>§is_tracked: bool§should_be_ignored: bool§risk_level: GitIgnoreRiskImplementations§
Source§impl GitIgnoreStatus
impl GitIgnoreStatus
Sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Get a human-readable description of the status
Sourcepub fn recommended_action(&self) -> String
pub fn recommended_action(&self) -> String
Get recommended action for this file
Trait Implementations§
Source§impl Clone for GitIgnoreStatus
impl Clone for GitIgnoreStatus
Source§fn clone(&self) -> GitIgnoreStatus
fn clone(&self) -> GitIgnoreStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GitIgnoreStatus
impl RefUnwindSafe for GitIgnoreStatus
impl Send for GitIgnoreStatus
impl Sync for GitIgnoreStatus
impl Unpin for GitIgnoreStatus
impl UnwindSafe for GitIgnoreStatus
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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