pub enum JsonValue {
Null,
Bool(bool),
Number(f64),
String(String),
Array(Vec<JsonValue>),
Object(BTreeMap<String, JsonValue>),
OrderedObject(Vec<(String, JsonValue)>),
}Variants§
Null
Bool(bool)
Number(f64)
String(String)
Array(Vec<JsonValue>)
Object(BTreeMap<String, JsonValue>)
OrderedObject(Vec<(String, JsonValue)>)
キーの出現順を保つオブジェクト(parse_js が返す。JS の JSON.parse 用)。
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 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