pub enum Rule {
InvalidIndentation,
InvalidDocumentMarker,
InvalidTabUsage,
MissingSyntax,
InvalidEscape,
DuplicateKeys,
InvalidAnchor,
InvalidTag,
Other,
}Expand description
Specific YAML spec rules that can be violated
Variants§
InvalidIndentation
Invalid indentation
InvalidDocumentMarker
Document markers in wrong context
InvalidTabUsage
Invalid tab usage
MissingSyntax
Missing required syntax elements
InvalidEscape
Invalid escape sequence
DuplicateKeys
Duplicate keys in mapping
InvalidAnchor
Invalid anchor/alias usage
InvalidTag
Invalid tag
Other
Other spec violations
Trait Implementations§
impl Copy for Rule
impl Eq for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
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