redfish_codegen/models/port/v1_9_0/
function_max_bandwidth.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// A maximum bandwidth allocation percentage for a network device functions associated a port.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct FunctionMaxBandwidth {
10    /// The maximum bandwidth allocation percentage allocated to the corresponding network device function instance.
11    #[serde(rename = "AllocationPercent")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub allocation_percent: Option<i64>,
14    #[serde(rename = "NetworkDeviceFunction")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub network_device_function: Option<models::odata_v4::IdRef>,
17}
18
19impl crate::Metadata<'static> for FunctionMaxBandwidth {
20    const JSON_SCHEMA: &'static str = "Port.v1_9_0.json";
21}