pub enum Jsonvalue {
JsonNull,
JsonBool(JsonBool),
JsonNumber(JsonNumber),
JsonString(JsonString),
JsonArray(JsonArray),
JsonObject(JsonObject),
}Expand description
Variants§
JsonNull
JsonBool(JsonBool)
JsonNumber(JsonNumber)
JsonString(JsonString)
JsonArray(JsonArray)
JsonObject(JsonObject)
Trait Implementations§
Source§impl Deserializable for Jsonvalue
impl Deserializable for Jsonvalue
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<JsonNumber> for Jsonvalue
impl From<JsonNumber> for Jsonvalue
Source§fn from(x: JsonNumber) -> Self
fn from(x: JsonNumber) -> Self
Converts to this type from the input type.
Source§impl From<JsonObject> for Jsonvalue
impl From<JsonObject> for Jsonvalue
Source§fn from(x: JsonObject) -> Self
fn from(x: JsonObject) -> Self
Converts to this type from the input type.
Source§impl From<JsonString> for Jsonvalue
impl From<JsonString> for Jsonvalue
Source§fn from(x: JsonString) -> Self
fn from(x: JsonString) -> Self
Converts to this type from the input type.
Source§impl Serializable for Jsonvalue
impl Serializable for Jsonvalue
Source§impl TryFrom<Jsonvalue> for JsonNumber
impl TryFrom<Jsonvalue> for JsonNumber
Source§impl TryFrom<Jsonvalue> for JsonObject
impl TryFrom<Jsonvalue> for JsonObject
Source§impl TryFrom<Jsonvalue> for JsonString
impl TryFrom<Jsonvalue> for JsonString
impl StructuralPartialEq for Jsonvalue
Auto Trait Implementations§
impl Freeze for Jsonvalue
impl RefUnwindSafe for Jsonvalue
impl Send for Jsonvalue
impl Sync for Jsonvalue
impl Unpin for Jsonvalue
impl UnsafeUnpin for Jsonvalue
impl UnwindSafe for Jsonvalue
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