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.
source§impl PartialEq for Value
impl PartialEq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
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> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Available on crate feature
trace
only.source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Available on crate feature
trace
only.