Struct diagnostics_data::InspectMetadata
source · pub struct InspectMetadata {
pub errors: Option<Vec<InspectError>>,
pub name: Option<InspectHandleName>,
pub component_url: Option<String>,
pub timestamp: i64,
}
Expand description
The metadata contained in a DiagnosticsData
object where the data source is
DataSource::Inspect
.
Fields§
§errors: Option<Vec<InspectError>>
Optional vector of errors encountered by platform.
name: Option<InspectHandleName>
Name of diagnostics source producing data.
component_url: Option<String>
The url with which the component was launched.
timestamp: i64
Monotonic time in nanos.
Trait Implementations§
source§impl Clone for InspectMetadata
impl Clone for InspectMetadata
source§fn clone(&self) -> InspectMetadata
fn clone(&self) -> InspectMetadata
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 InspectMetadata
impl Debug for InspectMetadata
source§impl<'de> Deserialize<'de> for InspectMetadata
impl<'de> Deserialize<'de> for InspectMetadata
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 InspectMetadata
impl Metadata for InspectMetadata
§type Error = InspectError
type Error = InspectError
The type of error returned in this metadata.
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 InspectMetadata
impl PartialEq for InspectMetadata
source§fn eq(&self, other: &InspectMetadata) -> bool
fn eq(&self, other: &InspectMetadata) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for InspectMetadata
impl Serialize for InspectMetadata
impl StructuralPartialEq for InspectMetadata
Auto Trait Implementations§
impl Freeze for InspectMetadata
impl RefUnwindSafe for InspectMetadata
impl Send for InspectMetadata
impl Sync for InspectMetadata
impl Unpin for InspectMetadata
impl UnwindSafe for InspectMetadata
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