pub enum FieldValue {
Float(f64),
Integer(i64),
UInteger(u64),
String(String),
Boolean(bool),
}Variants§
Float(f64)
Represent a floating point number field value
Integer(i64)
Represent a signed integer number field value
UInteger(u64)
Represent an unsigned integer number field value
String(String)
Represent a string field value
Boolean(bool)
Represent a boolean field value
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 Convert for FieldValue
impl Convert for FieldValue
Source§fn parse_from<T>(from: T) -> Result<Self>
fn parse_from<T>(from: T) -> Result<Self>
Attempt to parse a generic type into FieldValue
§Example
let uuid = Uuid::new_v4();
let value = FieldValue::parse_from(uuid).unwrap();Source§fn parse_into<T>(&self) -> Result<T>
fn parse_into<T>(&self) -> Result<T>
Attempt to parse FieldValue into generic type T
Note: This only makes sense to do if type is FieldValue::String
§Example
let value = FieldValue::String("d5a47b74-bff6-4dc5-9c7c-2558bd98a70b");
let uuid = value.parse_into<Uuid>().unwrap();Source§impl Debug for FieldValue
impl Debug for FieldValue
Source§impl Display for FieldValue
impl Display for FieldValue
Source§impl Format for FieldValue
impl Format for FieldValue
Source§impl From<&String> for FieldValue
impl From<&String> 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<i8> for FieldValue
impl From<i8> 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<u8> for FieldValue
impl From<u8> 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
Source§impl PartialEq for FieldValue
impl PartialEq 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