pub struct Trace {
pub vantage_point: VantagePoint,
pub title: Option<String>,
pub description: Option<String>,
pub configuration: Option<Configuration>,
pub common_fields: Option<CommonFields>,
pub events: Vec<Event>,
}
Fields§
§vantage_point: VantagePoint
§title: Option<String>
§description: Option<String>
§configuration: Option<Configuration>
§common_fields: Option<CommonFields>
§events: Vec<Event>
Implementations§
Source§impl Trace
Helper functions for using a qlog Trace.
impl Trace
Helper functions for using a qlog Trace.
Sourcepub fn new(
vantage_point: VantagePoint,
title: Option<String>,
description: Option<String>,
configuration: Option<Configuration>,
common_fields: Option<CommonFields>,
) -> Self
pub fn new( vantage_point: VantagePoint, title: Option<String>, description: Option<String>, configuration: Option<Configuration>, common_fields: Option<CommonFields>, ) -> Self
Creates a new qlog Trace
Sourcepub fn push_event(&mut self, event: Event)
pub fn push_event(&mut self, event: Event)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Trace
impl<'de> Deserialize<'de> for Trace
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
impl StructuralPartialEq for Trace
Auto Trait Implementations§
impl Freeze for Trace
impl RefUnwindSafe for Trace
impl Send for Trace
impl Sync for Trace
impl Unpin for Trace
impl UnwindSafe for Trace
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