pub struct OurLogHeader {
pub byte_size: Option<u64>,
pub other: BTreeMap<String, Value>,
}
Expand description
Relay specific metadata embedded into the log item.
This metadata is purely an internal protocol extension used by Relay, no one except Relay should be sending this data, nor should anyone except Relay rely on it.
Fields§
§byte_size: Option<u64>
Original (calculated) size of the log item when it was first received by a Relay.
If this value exists, Relay uses it as quantity for all outcomes emitted to the log byte data category.
other: BTreeMap<String, Value>
Forward compatibility for additional headers.
Trait Implementations§
Source§impl Clone for OurLogHeader
impl Clone for OurLogHeader
Source§fn clone(&self) -> OurLogHeader
fn clone(&self) -> OurLogHeader
Returns a copy 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 OurLogHeader
impl Debug for OurLogHeader
Source§impl Default for OurLogHeader
impl Default for OurLogHeader
Source§fn default() -> OurLogHeader
fn default() -> OurLogHeader
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OurLogHeader
impl<'de> Deserialize<'de> for OurLogHeader
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OurLogHeader
impl RefUnwindSafe for OurLogHeader
impl Send for OurLogHeader
impl Sync for OurLogHeader
impl Unpin for OurLogHeader
impl UnwindSafe for OurLogHeader
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