Struct diagnostics_data::Inspect
source · pub struct Inspect;
Expand description
Inspect carries snapshots of data trees hosted by components.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Inspect
impl<'de> Deserialize<'de> for Inspect
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 DiagnosticsData for Inspect
impl DiagnosticsData for Inspect
§type Metadata = InspectMetadata
type Metadata = InspectMetadata
The type of metadata included in results of this type.
§type Error = InspectError
type Error = InspectError
The type of error returned in this metadata.
source§const DATA_TYPE: DataType = DataType::Inspect
const DATA_TYPE: DataType = DataType::Inspect
Used to query for this kind of metadata in the ArchiveAccessor.
source§fn component_url(metadata: &Self::Metadata) -> Option<&str>
fn component_url(metadata: &Self::Metadata) -> Option<&str>
Returns the component URL which generated this value.
source§fn timestamp(metadata: &Self::Metadata) -> Timestamp
fn timestamp(metadata: &Self::Metadata) -> Timestamp
Returns the timestamp at which this value was recorded.
source§fn errors(metadata: &Self::Metadata) -> &Option<Vec<Self::Error>>
fn errors(metadata: &Self::Metadata) -> &Option<Vec<Self::Error>>
Returns the errors recorded with this value, if any.
source§fn override_error(metadata: Self::Metadata, error: String) -> Self::Metadata
fn override_error(metadata: Self::Metadata, error: String) -> Self::Metadata
Transforms a Metdata string into a errorful metadata, overriding any other
errors.
source§fn has_errors(metadata: &Self::Metadata) -> bool
fn has_errors(metadata: &Self::Metadata) -> bool
Returns whether any errors are recorded on this value.