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(SmartString<LazyCompact>)
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<SmartString<LazyCompact>, 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<DataValue, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<DataValue, <D as Deserializer<'de>>::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§fn from(value: HashMap<SmartString<LazyCompact>, DataValue>) -> DataValue
fn from(value: HashMap<SmartString<LazyCompact>, DataValue>) -> DataValue
Converts to this type from the input type.
Source§impl From<Option<&SmartString<LazyCompact>>> for DataValue
impl From<Option<&SmartString<LazyCompact>>> for DataValue
Source§fn from(value: Option<&SmartString<LazyCompact>>) -> DataValue
fn from(value: Option<&SmartString<LazyCompact>>) -> DataValue
Converts to this type from the input type.
Source§impl From<Option<SmartString<LazyCompact>>> for DataValue
impl From<Option<SmartString<LazyCompact>>> for DataValue
Source§fn from(value: Option<SmartString<LazyCompact>>) -> DataValue
fn from(value: Option<SmartString<LazyCompact>>) -> DataValue
Converts to this type from the input type.
Source§impl From<SmartString<LazyCompact>> for DataValue
impl From<SmartString<LazyCompact>> for DataValue
Source§fn from(value: SmartString<LazyCompact>) -> DataValue
fn from(value: SmartString<LazyCompact>) -> DataValue
Converts to this type from the input type.
Source§impl From<Vec<SmartString<LazyCompact>>> for DataValue
impl From<Vec<SmartString<LazyCompact>>> for DataValue
Source§fn from(value: Vec<SmartString<LazyCompact>>) -> DataValue
fn from(value: Vec<SmartString<LazyCompact>>) -> DataValue
Converts to this type from the input type.
Source§impl Ord for DataValue
impl Ord for DataValue
Source§impl PartialOrd for DataValue
impl PartialOrd for DataValue
Source§impl Serialize for DataValue
impl Serialize for DataValue
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
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