pub enum LintInput {
Range(Option<String>),
Message(String),
}Expand description
What to lint.
Either a commit range (resolved the same way as the CLI’s positional
argument, defaulting to commits ahead of the base branch when None) or
a single literal message (the --stdin equivalent).
Variants§
Range(Option<String>)
Lint every non-merge commit in this range.
Message(String)
Lint this message directly, bypassing git entirely.
Auto Trait Implementations§
impl Freeze for LintInput
impl RefUnwindSafe for LintInput
impl Send for LintInput
impl Sync for LintInput
impl Unpin for LintInput
impl UnsafeUnpin for LintInput
impl UnwindSafe for LintInput
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