pub struct VersionProbe {
pub line: usize,
pub found_version: Option<Value>,
}Expand description
The first line whose raw JSON names a known kind and does not carry "v":2.
Fields§
§line: usize1-based physical line number.
found_version: Option<Value>The offending v verbatim, or None when the key was absent. Absent and
wrong are told apart by this being None, never by null-ness: a stored
"v":null reports Some(Value::Null).
Trait Implementations§
Source§impl Clone for VersionProbe
impl Clone for VersionProbe
Source§fn clone(&self) -> VersionProbe
fn clone(&self) -> VersionProbe
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VersionProbe
impl RefUnwindSafe for VersionProbe
impl Send for VersionProbe
impl Sync for VersionProbe
impl Unpin for VersionProbe
impl UnsafeUnpin for VersionProbe
impl UnwindSafe for VersionProbe
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