pub struct TraceObject {
pub to_human: Option<String>,
pub to_machine: String,
pub to_namespace: Vec<String>,
pub to_severity: Severity,
pub to_details: DetailLevel,
pub to_timestamp: DateTime<Utc>,
pub to_hostname: String,
pub to_thread_id: String,
}Expand description
A trace object sent over the wire
This must match the Haskell TraceObject structure exactly:
data TraceObject = TraceObject {
toHuman :: !(Maybe Text)
, toMachine :: !Text
, toNamespace :: ![Text]
, toSeverity :: !SeverityS
, toDetails :: !DetailLevel
, toTimestamp :: !UTCTime
, toHostname :: !Text
, toThreadId :: !Text
}Fields§
§to_human: Option<String>Human-readable representation (if available)
to_machine: StringMachine-readable representation (JSON)
to_namespace: Vec<String>Hierarchical namespace for the trace
to_severity: SeveritySeverity level
to_details: DetailLevelDetail level
to_timestamp: DateTime<Utc>Timestamp when the trace was created
to_hostname: StringHostname of the machine generating the trace
to_thread_id: StringThread ID that generated the trace
Trait Implementations§
Source§impl Clone for TraceObject
impl Clone for TraceObject
Source§fn clone(&self) -> TraceObject
fn clone(&self) -> TraceObject
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 TraceObject
impl Debug for TraceObject
Source§impl<'b> Decode<'b, ()> for TraceObject
impl<'b> Decode<'b, ()> for TraceObject
Source§impl<'de> Deserialize<'de> for TraceObject
impl<'de> Deserialize<'de> for TraceObject
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 Encode<()> for TraceObject
impl Encode<()> for TraceObject
Auto Trait Implementations§
impl Freeze for TraceObject
impl RefUnwindSafe for TraceObject
impl Send for TraceObject
impl Sync for TraceObject
impl Unpin for TraceObject
impl UnsafeUnpin for TraceObject
impl UnwindSafe for TraceObject
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more