redfish_codegen/models/network_adapter/v1_9_0/
nic_partitioning.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// NIC Partitioning capability, status, and configuration for a controller.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct NicPartitioning {
9    /// An indication of whether the controller supports NIC function partitioning.
10    #[serde(rename = "NparCapable")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub npar_capable: Option<bool>,
13    /// An indication of whether NIC function partitioning is active on this controller.
14    #[serde(rename = "NparEnabled")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub npar_enabled: Option<bool>,
17}
18
19impl crate::Metadata<'static> for NicPartitioning {
20    const JSON_SCHEMA: &'static str = "NetworkAdapter.v1_9_0.json";
21}