Enum json_deserializer::Value
source · [−]pub enum Value<'a> {
Null,
String(Cow<'a, str>),
Number(&'a [u8]),
Bool(bool),
Object(Object<'a>),
Array(Vec<Value<'a>>),
}
Expand description
Reference to JSON data.
Variants
Null
A null
String(Cow<'a, str>)
A string (i.e. something quoted; quotes are not part of this. Data has not been UTF-8 validated)
Number(&'a [u8])
A number (i.e. something starting with a number with an optional period)
Bool(bool)
A bool (i.e. false
or true
)
Object(Object<'a>)
An object (i.e. items inside curly brackets {}
separated by colon :
and comma ,
)
Array(Vec<Value<'a>>)
An array (i.e. items inside squared brackets []
separated by comma ,
)
Trait Implementations
impl<'a> Eq for Value<'a>
impl<'a> StructuralEq for Value<'a>
impl<'a> StructuralPartialEq for Value<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Value<'a>
impl<'a> Send for Value<'a>
impl<'a> Sync for Value<'a>
impl<'a> Unpin for Value<'a>
impl<'a> UnwindSafe for Value<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more