Struct tracing_serde_structured::SerializeEvent
source · pub struct SerializeEvent<'a> {
pub fields: SerializeRecordFields<'a>,
pub metadata: SerializeMetadata<'a>,
pub parent: Option<SerializeId>,
}
Expand description
Implements serde::Serialize
to write Event
data to a serializer.
Fields§
§fields: SerializeRecordFields<'a>
§metadata: SerializeMetadata<'a>
§parent: Option<SerializeId>
Implementations§
source§impl<'a> SerializeEvent<'a>
impl<'a> SerializeEvent<'a>
pub fn to_owned(&self) -> SerializeEvent<'static>
Trait Implementations§
source§impl<'a> Debug for SerializeEvent<'a>
impl<'a> Debug for SerializeEvent<'a>
source§impl<'de: 'a, 'a> Deserialize<'de> for SerializeEvent<'a>
impl<'de: 'a, 'a> Deserialize<'de> for SerializeEvent<'a>
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
source§impl<'a> Serialize for SerializeEvent<'a>
impl<'a> Serialize for SerializeEvent<'a>
impl Send for SerializeEvent<'static>
SAFETY: If all data is ’static and/or owned, it is safe to send between threads.
Auto Trait Implementations§
impl<'a> Freeze for SerializeEvent<'a>
impl<'a> !RefUnwindSafe for SerializeEvent<'a>
impl<'a> !Sync for SerializeEvent<'a>
impl<'a> Unpin for SerializeEvent<'a>
impl<'a> !UnwindSafe for SerializeEvent<'a>
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