pub enum InputFormat {
Protobuf,
Json,
Jsonl,
Auto,
}Expand description
Input format for OTLP decoding
Variants§
Protobuf
Protocol Buffers binary format
Json
JSON format
Jsonl
Newline-delimited JSON (JSONL/NDJSON) format
Auto
Auto-detect JSON vs protobuf, with fallback decoding
Implementations§
Source§impl InputFormat
impl InputFormat
Sourcepub fn from_content_type(content_type: Option<&str>) -> InputFormat
pub fn from_content_type(content_type: Option<&str>) -> InputFormat
Infer input format from Content-Type header.
Sourcepub fn content_type(&self) -> &'static str
pub fn content_type(&self) -> &'static str
Returns the canonical Content-Type string for this format.
Trait Implementations§
Source§impl Clone for InputFormat
impl Clone for InputFormat
Source§fn clone(&self) -> InputFormat
fn clone(&self) -> InputFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InputFormat
impl Debug for InputFormat
Source§impl PartialEq for InputFormat
impl PartialEq for InputFormat
impl Copy for InputFormat
impl Eq for InputFormat
impl StructuralPartialEq for InputFormat
Auto Trait Implementations§
impl Freeze for InputFormat
impl RefUnwindSafe for InputFormat
impl Send for InputFormat
impl Sync for InputFormat
impl Unpin for InputFormat
impl UnwindSafe for InputFormat
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.