pub enum DataValue {
}
Expand description
Represents a generic value (something like serde_json::Value) which can be converted from/to python and provides other benefits.
Variants§
String(String)
Bytes(Vec<u8>)
U8(u8)
Bool(bool)
I32(i32)
U32(u32)
I64(i64)
U64(u64)
I128(i128)
U128(u128)
F32(f32)
F64(f64)
Map(HashMap<String, DataValue>)
Vec(Vec<DataValue>)
EnumNumber(i32)
Null
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DataValue
impl<'de> Deserialize<'de> for DataValue
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
Source§impl From<HashMap<SmartString<LazyCompact>, DataValue>> for DataValue
impl From<HashMap<SmartString<LazyCompact>, DataValue>> for DataValue
Source§impl From<Option<&SmartString<LazyCompact>>> for DataValue
impl From<Option<&SmartString<LazyCompact>>> for DataValue
Source§impl From<Option<SmartString<LazyCompact>>> for DataValue
impl From<Option<SmartString<LazyCompact>>> for DataValue
Source§impl From<SmartString<LazyCompact>> for DataValue
impl From<SmartString<LazyCompact>> for DataValue
Source§impl From<Vec<SmartString<LazyCompact>>> for DataValue
impl From<Vec<SmartString<LazyCompact>>> for DataValue
Source§impl Ord for DataValue
impl Ord for DataValue
Source§impl PartialOrd for DataValue
impl PartialOrd for DataValue
impl Eq for DataValue
Auto Trait Implementations§
impl Freeze for DataValue
impl RefUnwindSafe for DataValue
impl Send for DataValue
impl Sync for DataValue
impl Unpin for DataValue
impl UnwindSafe for DataValue
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