pub struct IgnoreCommand<'a> { /* private fields */ }Expand description
ignore: record one fingerprint as a duplicate that is meant to be there.
Implementations§
Source§impl<'a> IgnoreCommand<'a>
impl<'a> IgnoreCommand<'a>
pub const fn new( root: &'a Path, fingerprint: &'a str, reason: Option<&'a str>, ) -> Self
Sourcepub fn run(&self) -> CliResult<CommandOutcome>
pub fn run(&self) -> CliResult<CommandOutcome>
Add the fingerprint to the ignore file.
§Errors
Returns CliError::InvalidFingerprint if the string is not a
fingerprint this tool could have produced, and CliError::Io if the
ignore file cannot be written.
Auto Trait Implementations§
impl<'a> Freeze for IgnoreCommand<'a>
impl<'a> RefUnwindSafe for IgnoreCommand<'a>
impl<'a> Send for IgnoreCommand<'a>
impl<'a> Sync for IgnoreCommand<'a>
impl<'a> Unpin for IgnoreCommand<'a>
impl<'a> UnsafeUnpin for IgnoreCommand<'a>
impl<'a> UnwindSafe for IgnoreCommand<'a>
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