redfish-codegen 0.3.1

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

use crate::models;

/// A maximum bandwidth allocation percentage for a network device functions associated a port.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct FunctionMaxBandwidth {
    /// The maximum bandwidth allocation percentage allocated to the corresponding network device function instance.
    #[serde(rename = "AllocationPercent")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub allocation_percent: Option<i64>,
    #[serde(rename = "NetworkDeviceFunction")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub network_device_function: Option<models::odata_v4::IdRef>,
}

impl crate::Metadata<'static> for FunctionMaxBandwidth {
    const JSON_SCHEMA: &'static str = "Port.v1_8_0.json";
}