Enum opentelemetry::logs::AnyValue
source · pub enum AnyValue {
Int(i64),
Double(f64),
String(StringValue),
Boolean(bool),
Bytes(Vec<u8>),
ListAny(Vec<AnyValue>),
Map(HashMap<Key, AnyValue>),
}
Expand description
Value types for representing arbitrary values in a log record.
Variants§
Int(i64)
An integer value
Double(f64)
A double value
String(StringValue)
A string value
Boolean(bool)
A boolean value
Bytes(Vec<u8>)
A byte array
ListAny(Vec<AnyValue>)
An array of Any
values
Map(HashMap<Key, AnyValue>)
A map of string keys to Any
values, arbitrarily nested.
Trait Implementations§
source§impl From<StringValue> for AnyValue
impl From<StringValue> for AnyValue
source§fn from(val: StringValue) -> AnyValue
fn from(val: StringValue) -> AnyValue
Converts to this type from the input type.
source§impl<K: Into<Key>, V: Into<AnyValue>> FromIterator<(K, V)> for AnyValue
impl<K: Into<Key>, V: Into<AnyValue>> FromIterator<(K, V)> for AnyValue
source§fn from_iter<I: IntoIterator<Item = (K, V)>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = (K, V)>>(iter: I) -> Self
Creates an AnyValue::Map
value from a sequence of key-value pairs
that can be converted into a Key
and AnyValue
respectively.
source§impl<T: Into<AnyValue>> FromIterator<T> for AnyValue
impl<T: Into<AnyValue>> FromIterator<T> for AnyValue
source§fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
Creates an AnyValue::ListAny
value from a sequence of Into<AnyValue>
values.
source§impl PartialEq for AnyValue
impl PartialEq for AnyValue
impl StructuralPartialEq for AnyValue
Auto Trait Implementations§
impl Freeze for AnyValue
impl RefUnwindSafe for AnyValue
impl Send for AnyValue
impl Sync for AnyValue
impl Unpin for AnyValue
impl UnwindSafe for AnyValue
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)