pub enum JsonValue {
Object(JsonObject),
Array(Vec<JsonValue>),
String(Vec<char>),
Number(NumberValue),
Boolean(bool),
Null,
}
Variants§
Implementations§
Source§impl JsonValue
impl JsonValue
pub fn get_object(&self) -> Result<&JsonObject, SimpleError>
pub fn get_array(&self) -> Result<&Vec<JsonValue>, SimpleError>
pub fn get_string(&self) -> Result<AllocString, SimpleError>
pub fn get_chars(&self) -> Result<Vec<char>, SimpleError>
pub fn get_bytes(&self) -> Result<Vec<u8>, SimpleError>
pub fn get_number_f64(&self) -> Result<f64, SimpleError>
pub fn get_bool(&self) -> Result<bool, SimpleError>
pub fn is_null(&self) -> bool
Trait Implementations§
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 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