redfish-codegen 0.3.1

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


/// NIC Partitioning capability, status, and configuration for a controller.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct NicPartitioning {
    /// An indication of whether the controller supports NIC function partitioning.
    #[serde(rename = "NparCapable")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub npar_capable: Option<bool>,
    /// An indication of whether NIC function partitioning is active on this controller.
    #[serde(rename = "NparEnabled")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub npar_enabled: Option<bool>,
}

impl crate::Metadata<'static> for NicPartitioning {
    const JSON_SCHEMA: &'static str = "NetworkAdapter.v1_9_0.json";
}