pub enum JsonTopLevelKind {
Object,
Array,
Other,
}Expand description
Represents the top-level kind of a parsed JSON value.
The decoder uses this type to report whether the parsed value is an object, an array, or any other scalar-like JSON value.
Variants§
Object
Indicates that the parsed top-level value is a JSON object.
Array
Indicates that the parsed top-level value is a JSON array.
Other
Indicates that the parsed top-level value is neither an object nor an array.
Implementations§
Trait Implementations§
Source§impl Clone for JsonTopLevelKind
impl Clone for JsonTopLevelKind
Source§fn clone(&self) -> JsonTopLevelKind
fn clone(&self) -> JsonTopLevelKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JsonTopLevelKind
impl Debug for JsonTopLevelKind
Source§impl Display for JsonTopLevelKind
impl Display for JsonTopLevelKind
Source§impl From<&Value> for JsonTopLevelKind
impl From<&Value> for JsonTopLevelKind
Source§impl Hash for JsonTopLevelKind
impl Hash for JsonTopLevelKind
Source§impl PartialEq for JsonTopLevelKind
impl PartialEq for JsonTopLevelKind
impl Copy for JsonTopLevelKind
impl Eq for JsonTopLevelKind
impl StructuralPartialEq for JsonTopLevelKind
Auto Trait Implementations§
impl Freeze for JsonTopLevelKind
impl RefUnwindSafe for JsonTopLevelKind
impl Send for JsonTopLevelKind
impl Sync for JsonTopLevelKind
impl Unpin for JsonTopLevelKind
impl UnsafeUnpin for JsonTopLevelKind
impl UnwindSafe for JsonTopLevelKind
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