Enum restq::data_value::DataValue
source · pub enum DataValue {
}
Expand description
strict data value where each has exact byte definitions, etc.
Variants§
Nil
Bool(bool)
S8(u8)
S16(u16)
S32(u32)
S64(u64)
F32(f32)
F64(f64)
U8(u8)
U16(u16)
U32(u32)
U64(u64)
I8(i8)
I16(i16)
I32(i32)
I64(i64)
Uuid(Uuid)
UuidRand(Uuid)
UuidSlug(String)
Utc(DateTime<Utc>)
Text(String)
Ident(String)
Bytes(Vec<u8>)
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<DataValue> for DefaultValue
impl From<DataValue> for DefaultValue
source§impl PartialEq for DataValue
impl PartialEq for DataValue
impl StructuralPartialEq 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