pub enum DynamicValue {
String(String),
F64(f64),
U64(u64),
I64(i64),
Bool(bool),
Timestamp(TimestampUs),
Duration(DurationUs),
Bytes(Vec<u8>),
List(Vec<DynamicValue>),
Map(BTreeMap<String, DynamicValue>),
}
Variants§
String(String)
F64(f64)
U64(u64)
I64(i64)
Bool(bool)
Timestamp(TimestampUs)
Duration(DurationUs)
Bytes(Vec<u8>)
List(Vec<DynamicValue>)
Map(BTreeMap<String, DynamicValue>)
Trait Implementations§
Source§impl Clone for DynamicValue
impl Clone for DynamicValue
Source§fn clone(&self) -> DynamicValue
fn clone(&self) -> DynamicValue
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 DynamicValue
impl Debug for DynamicValue
Source§impl From<BTreeMap<String, DynamicValue>> for DynamicValue
impl From<BTreeMap<String, DynamicValue>> for DynamicValue
Source§impl From<DurationUs> for DynamicValue
impl From<DurationUs> for DynamicValue
Source§fn from(value: DurationUs) -> Self
fn from(value: DurationUs) -> Self
Converts to this type from the input type.
Source§impl From<String> for DynamicValue
impl From<String> for DynamicValue
Source§impl From<TimestampUs> for DynamicValue
impl From<TimestampUs> for DynamicValue
Source§fn from(value: TimestampUs) -> Self
fn from(value: TimestampUs) -> Self
Converts to this type from the input type.
Source§impl From<Vec<DynamicValue>> for DynamicValue
impl From<Vec<DynamicValue>> for DynamicValue
Source§fn from(value: Vec<DynamicValue>) -> Self
fn from(value: Vec<DynamicValue>) -> Self
Converts to this type from the input type.
Source§impl From<bool> for DynamicValue
impl From<bool> for DynamicValue
Source§impl From<f64> for DynamicValue
impl From<f64> for DynamicValue
Source§impl From<i64> for DynamicValue
impl From<i64> for DynamicValue
Source§impl From<u64> for DynamicValue
impl From<u64> for DynamicValue
Source§impl PartialEq for DynamicValue
impl PartialEq for DynamicValue
Source§impl Serialize for DynamicValue
impl Serialize for DynamicValue
impl StructuralPartialEq for DynamicValue
Auto Trait Implementations§
impl Freeze for DynamicValue
impl RefUnwindSafe for DynamicValue
impl Send for DynamicValue
impl Sync for DynamicValue
impl Unpin for DynamicValue
impl UnwindSafe for DynamicValue
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