pub struct Violation {
pub message: String,
pub location: Option<String>,
pub text_range: Option<TextPosition>,
pub severity: Severity,
pub rule: Rule,
}Expand description
A YAML specification violation found during validation
Fields§
§message: StringHuman-readable description of the violation
location: Option<String>Location in the source (line:column format)
text_range: Option<TextPosition>Byte range in the source text where the violation occurred
severity: SeveritySeverity of the violation
rule: RuleSpecific rule that was violated
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