redfish-codegen 0.3.1

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


/// The information about the use of $expand in the service.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct Expand {
    /// An indication of whether the service supports the asterisk (`*`) option of the $expand query parameter.
    #[serde(rename = "ExpandAll")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub expand_all: Option<bool>,
    /// An indication of whether the service supports the $levels option of the $expand query parameter.
    #[serde(rename = "Levels")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub levels: Option<bool>,
    /// An indication of whether this service supports the tilde (`~`) option of the $expand query parameter.
    #[serde(rename = "Links")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub links: Option<bool>,
    /// The maximum $levels option value in the $expand query parameter.
    #[serde(rename = "MaxLevels")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub max_levels: Option<i64>,
    /// An indication of whether the service supports the period (`.`) option of the $expand query parameter.
    #[serde(rename = "NoLinks")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub no_links: Option<bool>,
}

impl crate::Metadata<'static> for Expand {
    const JSON_SCHEMA: &'static str = "ServiceRoot.v1_16_0.json";
}