pub enum LogFieldValue {
Mapping(HashMap<String, LogFieldValue>),
Timestamp(DateTime<FixedOffset>),
Text(String),
Int(u64),
}Expand description
Possible types of values for a single log field.
Values may be nested arbitrarily deep by using the Mapping variant.
This is typically used for groups of values like request or response
headers.
Variants§
Trait Implementations§
Source§impl Clone for LogFieldValue
impl Clone for LogFieldValue
Source§fn clone(&self) -> LogFieldValue
fn clone(&self) -> LogFieldValue
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 LogFieldValue
impl Debug for LogFieldValue
Source§impl PartialEq for LogFieldValue
impl PartialEq for LogFieldValue
Source§impl Serialize for LogFieldValue
impl Serialize for LogFieldValue
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for LogFieldValue
impl StructuralPartialEq for LogFieldValue
Auto Trait Implementations§
impl Freeze for LogFieldValue
impl RefUnwindSafe for LogFieldValue
impl Send for LogFieldValue
impl Sync for LogFieldValue
impl Unpin for LogFieldValue
impl UnsafeUnpin for LogFieldValue
impl UnwindSafe for LogFieldValue
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