pub enum FieldValue {
Str(Cow<'static, str>),
I64(i64),
U64(u64),
F64(f64),
Bool(bool),
Uuid(Uuid),
Duration(Duration),
Ip(IpAddr),
}Expand description
Variants§
Str(Cow<'static, str>)
Human-readable string.
I64(i64)
Signed 64-bit integer.
U64(u64)
Unsigned 64-bit integer.
F64(f64)
Floating-point value.
Bool(bool)
Boolean flag.
Uuid(Uuid)
UUID represented with the canonical binary type.
Duration(Duration)
Elapsed duration captured with nanosecond precision.
Ip(IpAddr)
IP address (v4 or v6).
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§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 Display for FieldValue
impl Display for FieldValue
Source§impl From<&FieldValue> for ProblemMetadataValue
impl From<&FieldValue> for ProblemMetadataValue
Source§fn from(value: &FieldValue) -> Self
fn from(value: &FieldValue) -> Self
Converts to this type from the input type.
Source§impl From<FieldValue> for ProblemMetadataValue
impl From<FieldValue> for ProblemMetadataValue
Source§fn from(value: FieldValue) -> Self
fn from(value: FieldValue) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FieldValue
impl PartialEq 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 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