/// Creates a new data instance for inspect.
Creates a new data instance for inspect.
Creates a new data instance for inspect .
pub fn for_inspect(
        moniker: impl Into<String>,
        inspect_hierarchy: Option<DiagnosticsHierarchy>,
        timestamp_nanos: impl Into<Timestamp>,
        component_url: impl Into<String>,
        filename: impl Into<String>,
        errors: Vec<Error>,
    ) -> InspectData {
        let errors_opt = if errors.is_empty() { None } else { Some(errors) };
        Data {
            moniker: moniker.into(),
            version: SCHEMA_VERSION,
            data_source: DataSource::Inspect,
            payload: inspect_hierarchy,
            metadata: InspectMetadata {
                timestamp: timestamp_nanos.into(),
                component_url: component_url.into(),
                filename: filename.into(),
                errors: errors_opt,
            },
        }
    }
pub fn for_inspect ( moniker : impl Into < String > , inspect_hierarchy : Option < DiagnosticsHierarchy > , timestamp_nanos : impl Into < Timestamp > , component_url : impl Into < String > , filename : impl Into < String > , errors : Vec < Error > , ) -> InspectData { let errors_opt = if errors . is_empty ( ) { None } else { Some ( errors ) } ; Data { moniker : moniker . into ( ) , version : SCHEMA_VERSION , data_source : DataSource :: Inspect , payload : inspect_hierarchy , metadata : InspectMetadata { timestamp : timestamp_nanos . into ( ) , component_url : component_url . into ( ) , filename : filename . into ( ) , errors : errors_opt , } , } }
Creates a new data instance for inspect.
Creates a new data instance for inspect .
moniker
impl Into<String>
inspect_hierarchy
Option<DiagnosticsHierarchy>
timestamp_nanos
impl Into<Timestamp>
component_url
impl Into<String>
filename
impl Into<String>
errors
Vec<Error>