pub enum FieldValue {
Bool(bool),
Int8(i8),
Int16(i16),
Int32(i32),
Int64(i64),
UInt8(u8),
UInt16(u16),
UInt32(u32),
UInt64(u64),
Float32(f32),
Float64(f64),
String(String),
}
Expand description
Enum to hold different types of field values
Variants§
Bool(bool)
Int8(i8)
Int16(i16)
Int32(i32)
Int64(i64)
UInt8(u8)
UInt16(u16)
UInt32(u32)
UInt64(u64)
Float32(f32)
Float64(f64)
String(String)
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 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FieldValue
impl Debug for FieldValue
Source§impl Display for FieldValue
impl Display for FieldValue
Source§impl From<&str> for FieldValue
impl From<&str> 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<i16> for FieldValue
impl From<i16> 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<i8> for FieldValue
impl From<i8> for FieldValue
Source§impl From<u16> for FieldValue
impl From<u16> for FieldValue
Source§impl From<u32> for FieldValue
impl From<u32> for FieldValue
Source§impl From<u64> for FieldValue
impl From<u64> 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 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> 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