pub enum Rule {
File,
Canonical,
Order,
Shape,
Consistency,
Reconstruction,
GetterResult,
}Expand description
Which family of format rules a violation breaks.
Variants§
File
Encoding and line structure (record.md §1).
Canonical
Canonical JSON: whitespace, member order, escaping (record.md §1).
Order
Line order (record.md §1).
Shape
A member’s presence, type, null-ness or allowed values.
Consistency
The consistency rules between members and lines (record.md §3.3).
Reconstruction
The rules for members a writer omits (record.md §3.1, §5.2, §5.3).
GetterResult
A getter result that does not match its getter’s encoding (getter-map.md §3).
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