pub struct Steer {
pub rule_id: &'static str,
pub tool: &'static str,
pub suggestion: String,
pub note: &'static str,
}Expand description
A steering match: a ct tool serves the inspected command.
Fields§
§rule_id: &'static strStable identifier for the rule that fired (e.g. "find-grep").
tool: &'static strThe ct tool that serves the idiom (e.g. "ct search").
suggestion: StringA best-effort equivalent ct command line.
note: &'static strOne line teaching why the ct tool is the better fit.
Implementations§
Trait Implementations§
impl Eq for Steer
impl StructuralPartialEq for Steer
Auto Trait Implementations§
impl Freeze for Steer
impl RefUnwindSafe for Steer
impl Send for Steer
impl Sync for Steer
impl Unpin for Steer
impl UnsafeUnpin for Steer
impl UnwindSafe for Steer
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