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 Metadata for LogsMetadata
impl Metadata for LogsMetadata
source§fn component_url(&self) -> Option<&str>
fn component_url(&self) -> Option<&str>
Returns the component URL which generated this value.
source§fn errors(&self) -> Option<&[Self::Error]>
fn errors(&self) -> Option<&[Self::Error]>
Returns the errors recorded with this value, if any.
source§fn set_errors(&mut self, errors: Vec<Self::Error>)
fn set_errors(&mut self, errors: Vec<Self::Error>)
Overrides the errors associated with this value.
source§fn has_errors(&self) -> bool
fn has_errors(&self) -> bool
Returns whether any errors are recorded on this value.
source§impl PartialEq for LogsMetadata
impl PartialEq 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 ==
.source§impl Serialize for LogsMetadata
impl Serialize for LogsMetadata
impl StructuralPartialEq for LogsMetadata
Auto Trait Implementations§
impl RefUnwindSafe for LogsMetadata
impl Send for LogsMetadata
impl Sync for LogsMetadata
impl Unpin for LogsMetadata
impl UnwindSafe for LogsMetadata
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