#[non_exhaustive]pub enum OtlpValue {
String(String),
Int(i64),
Double(f64),
Bool(bool),
Bytes(Vec<u8>),
}Expand description
OTLP AnyValue substitute for the Phase-1 surface. The real OTLP
types live in obs-otel (Phase 3 task 3.8); we use a small
substitute here so EventSchemaErased::decode_to_otlp_kv can be
declared without a circular obs-core ↔ obs-otel dependency.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
String(String)
String body.
Int(i64)
64-bit integer body.
Double(f64)
Double body.
Bool(bool)
Boolean body.
Bytes(Vec<u8>)
Raw bytes body.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OtlpValue
impl RefUnwindSafe for OtlpValue
impl Send for OtlpValue
impl Sync for OtlpValue
impl Unpin for OtlpValue
impl UnsafeUnpin for OtlpValue
impl UnwindSafe for OtlpValue
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