pub struct Violation {
pub clause: Clause,
pub subject: Subject,
pub detail: String,
}Expand description
One requirement the document fails.
Fields§
§clause: ClauseThe requirement broken.
subject: SubjectWhat broke it.
detail: StringA sentence naming the specific thing found, for a report a person
reads. The machine-readable answer is clause and subject; this is
the detail neither of them can carry, such as the font’s base name.
Trait Implementations§
impl Eq for Violation
impl StructuralPartialEq for Violation
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