pub struct Violation {
pub severity: ViolationSeverity,
pub rule: String,
pub description: String,
pub segment: Option<String>,
}Fields§
§severity: ViolationSeverity§rule: StringShort rule ID, e.g. “HNHBK-001”.
description: StringHuman-readable explanation.
segment: Option<String>Which segment triggered this (if applicable).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Violation
impl RefUnwindSafe for Violation
impl Send for Violation
impl Sync for Violation
impl Unpin for Violation
impl UnsafeUnpin for Violation
impl UnwindSafe for Violation
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