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 deep operations that the service supports.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct DeepOperations {
    /// An indication of whether the service supports the deep PATCH operation.
    #[serde(rename = "DeepPATCH")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub deep_patch: Option<bool>,
    /// An indication of whether the service supports the deep POST operation.
    #[serde(rename = "DeepPOST")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub deep_post: Option<bool>,
    /// The maximum levels of resources allowed in deep operations.
    #[serde(rename = "MaxLevels")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub max_levels: Option<i64>,
}

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