pub enum FieldValue {
Text(String),
Int(i64),
UInt(u64),
Float(f64),
Bool(bool),
Bytes(Vec<u8>),
Null,
}Expand description
Typed value stored in a record field.
Variants§
Trait Implementations§
Source§impl Clone for FieldValue
impl Clone for FieldValue
Source§fn clone(&self) -> FieldValue
fn clone(&self) -> FieldValue
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 FieldValue
impl Debug for FieldValue
Source§impl<'de> Deserialize<'de> for FieldValue
impl<'de> Deserialize<'de> for FieldValue
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 FieldValue
impl From<&str> for FieldValue
Source§impl<T: Into<FieldValue>> From<Option<T>> for FieldValue
impl<T: Into<FieldValue>> From<Option<T>> for FieldValue
Source§impl From<String> for FieldValue
impl From<String> for FieldValue
Source§impl From<bool> for FieldValue
impl From<bool> for FieldValue
Source§impl From<f32> for FieldValue
impl From<f32> for FieldValue
Source§impl From<f64> for FieldValue
impl From<f64> for FieldValue
Source§impl From<i32> for FieldValue
impl From<i32> for FieldValue
Source§impl From<i64> for FieldValue
impl From<i64> for FieldValue
Source§impl From<u32> for FieldValue
impl From<u32> for FieldValue
Source§impl From<u64> for FieldValue
impl From<u64> for FieldValue
Source§impl PartialEq for FieldValue
impl PartialEq for FieldValue
Source§fn eq(&self, other: &FieldValue) -> bool
fn eq(&self, other: &FieldValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FieldValue
impl Serialize for FieldValue
impl StructuralPartialEq for FieldValue
Auto Trait Implementations§
impl Freeze for FieldValue
impl RefUnwindSafe for FieldValue
impl Send for FieldValue
impl Sync for FieldValue
impl Unpin for FieldValue
impl UnsafeUnpin for FieldValue
impl UnwindSafe for FieldValue
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