redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.


/// The wildcard and its substitution values.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct Wildcard {
    /// The string used as a wildcard.
    #[serde(rename = "Name")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// An array of values to substitute for the wildcard.
    #[serde(rename = "Values")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub values: Option<Vec<String>>,
}

impl crate::Metadata<'static> for Wildcard {
    const JSON_SCHEMA: &'static str = "MetricDefinition.v1_3_1.json";
}