pub struct LogsMetadata {
pub errors: Option<Vec<LogError>>,
pub component_url: Option<FlyStr>,
pub timestamp: Timestamp,
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<FlyStr>
The url with which the component was launched.
timestamp: Timestamp
Boot 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
Implementations§
Source§impl LogsMetadata
impl LogsMetadata
Sourcepub fn component_url(&self) -> Option<&str>
pub fn component_url(&self) -> Option<&str>
Returns the component URL which generated this value.
Sourcepub fn raw_severity(&self) -> u8
pub fn raw_severity(&self) -> u8
Returns the raw severity of this log.
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§impl PartialEq for LogsMetadata
impl PartialEq for LogsMetadata
Source§impl Serialize for LogsMetadata
impl Serialize for LogsMetadata
impl StructuralPartialEq for LogsMetadata
Auto Trait Implementations§
impl Freeze for LogsMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)