pub enum DeclaredVersion {
Missing,
Version(u32),
Unreadable,
}Expand description
The version: a document declares.
Variants§
Missing
The document has no version: key.
Version(u32)
The document’s schema version.
Unreadable
The document does not parse far enough to tell, or version: is not a
number: the full parse reports why.
Trait Implementations§
impl Copy for Declared
impl Eq for Declared
impl StructuralPartialEq for Declared
Auto Trait Implementations§
impl Forget for Declared
impl Freeze for Declared
impl Move for Declared
impl RefUnwindSafe for Declared
impl Send for Declared
impl Sync for Declared
impl Unpin for Declared
impl UnsafeUnpin for Declared
impl UnwindSafe for Declared
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