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<FieldValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FieldValue, <__D as Deserializer<'de>>::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§fn from(s: &str) -> FieldValue
fn from(s: &str) -> FieldValue
Converts to this type from the input type.
Source§impl<T> From<Option<T>> for FieldValuewhere
T: Into<FieldValue>,
impl<T> From<Option<T>> for FieldValuewhere
T: Into<FieldValue>,
Source§fn from(opt: Option<T>) -> FieldValue
fn from(opt: Option<T>) -> FieldValue
Converts to this type from the input type.
Source§impl From<String> for FieldValue
impl From<String> for FieldValue
Source§fn from(s: String) -> FieldValue
fn from(s: String) -> FieldValue
Converts to this type from the input type.
Source§impl From<bool> for FieldValue
impl From<bool> for FieldValue
Source§fn from(b: bool) -> FieldValue
fn from(b: bool) -> FieldValue
Converts to this type from the input type.
Source§impl From<f32> for FieldValue
impl From<f32> for FieldValue
Source§fn from(f: f32) -> FieldValue
fn from(f: f32) -> FieldValue
Converts to this type from the input type.
Source§impl From<f64> for FieldValue
impl From<f64> for FieldValue
Source§fn from(f: f64) -> FieldValue
fn from(f: f64) -> FieldValue
Converts to this type from the input type.
Source§impl From<i32> for FieldValue
impl From<i32> for FieldValue
Source§fn from(i: i32) -> FieldValue
fn from(i: i32) -> FieldValue
Converts to this type from the input type.
Source§impl From<i64> for FieldValue
impl From<i64> for FieldValue
Source§fn from(i: i64) -> FieldValue
fn from(i: i64) -> FieldValue
Converts to this type from the input type.
Source§impl From<u32> for FieldValue
impl From<u32> for FieldValue
Source§fn from(u: u32) -> FieldValue
fn from(u: u32) -> FieldValue
Converts to this type from the input type.
Source§impl From<u64> for FieldValue
impl From<u64> for FieldValue
Source§fn from(u: u64) -> FieldValue
fn from(u: u64) -> FieldValue
Converts to this type from the input type.
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
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more