Struct diagnostics_data::LogsMetadata
source · pub struct LogsMetadata {
pub errors: Option<Vec<LogError>>,
pub component_url: Option<String>,
pub timestamp: i64,
pub severity: Severity,
pub tags: Option<Vec<String>>,
pub pid: Option<u64>,
pub tid: Option<u64>,
pub file: Option<String>,
pub line: Option<u64>,
/* private fields */
}
Expand description
The metadata contained in a DiagnosticsData
object where the data source is
DataSource::Logs
.
Fields§
§errors: Option<Vec<LogError>>
Optional vector of errors encountered by platform.
component_url: Option<String>
The url with which the component was launched.
timestamp: i64
Monotonic time in nanos.
severity: Severity
Severity of the message.
Tags to add at the beginning of the message
pid: Option<u64>
The process ID
tid: Option<u64>
The thread ID
file: Option<String>
The file name
line: Option<u64>
The line number
Trait Implementations§
source§impl Clone for LogsMetadata
impl Clone for LogsMetadata
source§fn clone(&self) -> LogsMetadata
fn clone(&self) -> LogsMetadata
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 LogsMetadata
impl Debug for LogsMetadata
source§impl<'de> Deserialize<'de> for LogsMetadata
impl<'de> Deserialize<'de> for LogsMetadata
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<LogsMetadata> for LogsMetadata
impl PartialEq<LogsMetadata> for LogsMetadata
source§fn eq(&self, other: &LogsMetadata) -> bool
fn eq(&self, other: &LogsMetadata) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.