redfish-codegen 0.3.1

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


/// A virtual function of a controller.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct VirtualFunction {
    /// The maximum number of virtual functions supported by this controller.
    #[serde(rename = "DeviceMaxCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub device_max_count: Option<i64>,
    /// The minimum number of virtual functions that can be allocated or moved between physical functions for this controller.
    #[serde(rename = "MinAssignmentGroupSize")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub min_assignment_group_size: Option<i64>,
    /// The maximum number of virtual functions supported per network port for this controller.
    #[serde(rename = "NetworkPortMaxCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub network_port_max_count: Option<i64>,
}

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