pub enum TypedValue {
Null(DataTypeDescriptor),
Integer(i64),
Float(FloatValue),
Text(String),
Boolean(bool),
Timestamp(String),
Date(String),
Json(Value),
Uuid(String),
Bytes(String),
Decimal(String),
Vector(Vec<f32>),
}Variants§
Null(DataTypeDescriptor)
Integer(i64)
Float(FloatValue)
Text(String)
Boolean(bool)
Timestamp(String)
Date(String)
Json(Value)
Uuid(String)
Bytes(String)
Decimal(String)
Vector(Vec<f32>)
Implementations§
Source§impl TypedValue
impl TypedValue
pub fn data_type(&self) -> DataTypeDescriptor
Sourcepub fn decimal_parts(&self) -> Result<(i128, u8, u8), TypedValueError>
pub fn decimal_parts(&self) -> Result<(i128, u8, u8), TypedValueError>
Decode the language-neutral DECIMAL text form into RadixDB’s exact coefficient/precision/scale tuple. SDK transports use this one parser so embedded and TCP execution cannot disagree about admission.
Trait Implementations§
Source§impl Clone for TypedValue
impl Clone for TypedValue
Source§fn clone(&self) -> TypedValue
fn clone(&self) -> TypedValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypedValue
impl Debug for TypedValue
Source§impl<'de> Deserialize<'de> for TypedValue
impl<'de> Deserialize<'de> for TypedValue
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<&str> for TypedValue
impl From<&str> for TypedValue
Source§impl<T> From<Reference<T>> for TypedValue
impl<T> From<Reference<T>> for TypedValue
Source§impl From<String> for TypedValue
impl From<String> for TypedValue
Source§impl From<TypedValue> for Expr
impl From<TypedValue> for Expr
Source§fn from(value: TypedValue) -> Self
fn from(value: TypedValue) -> Self
Converts to this type from the input type.
Source§impl From<bool> for TypedValue
impl From<bool> for TypedValue
Source§impl From<f64> for TypedValue
impl From<f64> for TypedValue
Source§impl From<i64> for TypedValue
impl From<i64> for TypedValue
Source§impl PartialEq for TypedValue
impl PartialEq for TypedValue
Source§impl Serialize for TypedValue
impl Serialize for TypedValue
impl StructuralPartialEq for TypedValue
Auto Trait Implementations§
impl Freeze for TypedValue
impl RefUnwindSafe for TypedValue
impl Send for TypedValue
impl Sync for TypedValue
impl Unpin for TypedValue
impl UnsafeUnpin for TypedValue
impl UnwindSafe for TypedValue
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