pub enum MetaValue {
Boolean(bool),
Datetime(NaiveDateTime),
Float(f64),
TimeDuration(Duration),
String(String),
}Expand description
Value for user defined metadata.
Variants§
Boolean(bool)
bool
Datetime(NaiveDateTime)
NaiveDateTime
Float(f64)
f64
TimeDuration(Duration)
Duration
String(String)
String
Trait Implementations§
Source§impl GetSize for MetaValue
impl GetSize for MetaValue
Source§fn get_heap_size(&self) -> usize
fn get_heap_size(&self) -> usize
Determines how many bytes this object occupies inside the heap. Read more
Source§fn get_stack_size() -> usize
fn get_stack_size() -> usize
Determines how may bytes this object occupies inside the stack. Read more
Source§fn get_heap_size_with_tracker<T>(&self, tracker: T) -> (usize, T)where
T: GetSizeTracker,
fn get_heap_size_with_tracker<T>(&self, tracker: T) -> (usize, T)where
T: GetSizeTracker,
Determines how many bytes this object occupies inside the heap while using a
tracker. Read moreSource§fn get_size_with_tracker<T>(&self, tracker: T) -> (usize, T)where
T: GetSizeTracker,
fn get_size_with_tracker<T>(&self, tracker: T) -> (usize, T)where
T: GetSizeTracker,
Determines the total size of the object while using a
tracker. Read moreAuto Trait Implementations§
impl Freeze for MetaValue
impl RefUnwindSafe for MetaValue
impl Send for MetaValue
impl Sync for MetaValue
impl Unpin for MetaValue
impl UnwindSafe for MetaValue
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