pub enum JsonV<K>{
Boolean(bool),
Int64(i64),
Int32(i32),
Float64(f64),
Float32(f32),
String(String),
Array(Vec<JsonV<K>>),
Object(JsonMap<K>),
}Expand description
通过枚举类型支持 HashMap 内的Vlaue值可以同时存储 浮点型,整数,字符串,数组,对象类型。
Variants§
Boolean(bool)
Int64(i64)
Int32(i32)
Float64(f64)
Float32(f32)
String(String)
Array(Vec<JsonV<K>>)
Object(JsonMap<K>)
Trait Implementations§
source§impl<'de, K> Deserialize<'de> for JsonV<K>
impl<'de, K> Deserialize<'de> for JsonV<K>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<K> Freeze for JsonV<K>
impl<K> RefUnwindSafe for JsonV<K>where
K: RefUnwindSafe,
impl<K> Send for JsonV<K>where
K: Send,
impl<K> Sync for JsonV<K>where
K: Sync,
impl<K> Unpin for JsonV<K>where
K: Unpin,
impl<K> UnwindSafe for JsonV<K>where
K: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)