pub struct Rule {
pub id: &'static str,
pub level: Level,
pub summary: &'static str,
}Expand description
One content check: its stable id, the level it reports at, and what it finds.
Fields§
§id: &'static strThe id findings carry (diff-ci-unpinned); stable, like the policy’s rule ids.
level: LevelThe level of its findings when the policy does not set one. A rule whose findings differ (a key in a test fixture) gives the stricter one here.
summary: &'static strWhat it looks for, for docs and --format json readers.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Rule
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnsafeUnpin for Rule
impl UnwindSafe for Rule
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