Enum opentelemetry::Value
source · pub enum Value {
Bool(bool),
I64(i64),
F64(f64),
String(StringValue),
Array(Array),
}
Expand description
The value part of attribute KeyValue pairs.
Variants§
Bool(bool)
bool values
I64(i64)
i64 values
F64(f64)
f64 values
String(StringValue)
String values
Array(Array)
Array of homogeneous values
Implementations§
Trait Implementations§
source§impl From<StringValue> for Value
impl From<StringValue> for Value
source§fn from(t: StringValue) -> Self
fn from(t: StringValue) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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
)