pub enum AttributeValue {
Str(String),
Int(i64),
Double(f64),
Bool(bool),
}Expand description
Attribute value: the scalar subset of OTLP AnyValue.
Variants§
Str(String)
A string (OTLP string_value).
Int(i64)
A 64-bit integer (OTLP int_value).
Double(f64)
A 64-bit float (OTLP double_value).
Bool(bool)
A boolean (OTLP bool_value).
Trait Implementations§
Source§impl Clone for AttributeValue
impl Clone for AttributeValue
Source§impl Debug for AttributeValue
impl Debug for AttributeValue
Source§impl From<&str> for AttributeValue
impl From<&str> for AttributeValue
Source§impl From<String> for AttributeValue
impl From<String> for AttributeValue
Source§impl From<bool> for AttributeValue
impl From<bool> for AttributeValue
Source§impl From<f64> for AttributeValue
impl From<f64> for AttributeValue
Source§impl From<i64> for AttributeValue
impl From<i64> for AttributeValue
Source§impl PartialEq for AttributeValue
impl PartialEq for AttributeValue
impl StructuralPartialEq for AttributeValue
Auto Trait Implementations§
impl Forget for AttributeValue
impl Freeze for AttributeValue
impl Move for AttributeValue
impl RefUnwindSafe for AttributeValue
impl Send for AttributeValue
impl Sync for AttributeValue
impl Unpin for AttributeValue
impl UnsafeUnpin for AttributeValue
impl UnwindSafe for AttributeValue
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