pub type InspectData = Data<Inspect>;
Expand description
A diagnostics data object containing inspect data.
Aliased Type§
struct InspectData {
pub data_source: DataSource,
pub metadata: InspectMetadata,
pub moniker: ExtendedMoniker,
pub payload: Option<DiagnosticsHierarchy>,
pub version: u64,
}
Fields§
§data_source: DataSource
The source of the data.
metadata: InspectMetadata
The metadata for the diagnostics payload.
moniker: ExtendedMoniker
Moniker of the component that generated the payload.
payload: Option<DiagnosticsHierarchy>
Payload containing diagnostics data, if the payload exists, else None.
version: u64
Schema version.
Implementations
Source§impl<D> Data<D>where
D: DiagnosticsData,
impl<D> Data<D>where
D: DiagnosticsData,
Sourcepub fn drop_payload(&mut self)
pub fn drop_payload(&mut self)
Returns a Data
with an error indicating that the payload was dropped.
Sourcepub fn sort_payload(&mut self)
pub fn sort_payload(&mut self)
Sorts this Data
’s payload if one is present.
Trait Implementations
Source§impl<'de, D: DiagnosticsData> Deserialize<'de> for Data<D>where
D::Metadata: DeserializeOwned,
impl<'de, D: DiagnosticsData> Deserialize<'de> for Data<D>where
D::Metadata: DeserializeOwned,
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