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 AddAssign<&DataValue> for DataValue
impl AddAssign<&DataValue> for DataValue
Source§fn add_assign(&mut self, other: &DataValue)
fn add_assign(&mut self, other: &DataValue)
Performs the
+=
operation. Read moreSource§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 DivAssign<&DataValue> for DataValue
impl DivAssign<&DataValue> for DataValue
Source§fn div_assign(&mut self, other: &DataValue)
fn div_assign(&mut self, other: &DataValue)
Performs the
/=
operation. Read moreSource§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 MulAssign<&DataValue> for DataValue
impl MulAssign<&DataValue> for DataValue
Source§fn mul_assign(&mut self, other: &DataValue)
fn mul_assign(&mut self, other: &DataValue)
Performs the
*=
operation. Read moreSource§impl Ord for DataValue
impl Ord for DataValue
Source§impl PartialOrd for DataValue
impl PartialOrd for DataValue
Source§impl SubAssign<&DataValue> for DataValue
impl SubAssign<&DataValue> for DataValue
Source§fn sub_assign(&mut self, other: &DataValue)
fn sub_assign(&mut self, other: &DataValue)
Performs the
-=
operation. Read moreimpl 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