#[non_exhaustive]pub struct TimeEvents {
pub time_event: Vec<TimeEvent>,
pub dropped_annotations_count: i32,
pub dropped_message_events_count: i32,
}Expand description
A collection of TimeEvents. A TimeEvent is a time-stamped annotation
on the span, consisting of either user-supplied key:value pairs, or
details of a message sent/received between Spans.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.time_event: Vec<TimeEvent>A collection of TimeEvents.
dropped_annotations_count: i32The number of dropped annotations in all the included time events. If the value is 0, then no annotations were dropped.
dropped_message_events_count: i32The number of dropped message events in all the included time events. If the value is 0, then no message events were dropped.
Implementations§
Source§impl TimeEvents
impl TimeEvents
Sourcepub fn set_dropped_annotations_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_dropped_annotations_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of dropped_annotations_count.
Sourcepub fn set_dropped_message_events_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_dropped_message_events_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of dropped_message_events_count.
Sourcepub fn set_time_event<T, V>(self, v: T) -> Self
pub fn set_time_event<T, V>(self, v: T) -> Self
Sets the value of time_event.
Trait Implementations§
Source§impl Clone for TimeEvents
impl Clone for TimeEvents
Source§fn clone(&self) -> TimeEvents
fn clone(&self) -> TimeEvents
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 TimeEvents
impl Debug for TimeEvents
Source§impl Default for TimeEvents
impl Default for TimeEvents
Source§fn default() -> TimeEvents
fn default() -> TimeEvents
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TimeEventswhere
TimeEvents: Default,
impl<'de> Deserialize<'de> for TimeEventswhere
TimeEvents: Default,
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 PartialEq for TimeEvents
impl PartialEq for TimeEvents
Source§impl Serialize for TimeEvents
impl Serialize for TimeEvents
impl StructuralPartialEq for TimeEvents
Auto Trait Implementations§
impl Freeze for TimeEvents
impl RefUnwindSafe for TimeEvents
impl Send for TimeEvents
impl Sync for TimeEvents
impl Unpin for TimeEvents
impl UnwindSafe for TimeEvents
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