redfish_codegen/models/network_device_function/v1_9_0/
limit.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// This type describes the packet and byte limit of a network device function.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct Limit {
10    /// The maximum number of bytes per second in a burst for this network device function.
11    #[serde(rename = "BurstBytesPerSecond")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub burst_bytes_per_second: Option<i64>,
14    /// The maximum number of packets per second in a burst for this network device function.
15    #[serde(rename = "BurstPacketsPerSecond")]
16    #[serde(default, skip_serializing_if = "Option::is_none")]
17    pub burst_packets_per_second: Option<i64>,
18    #[serde(rename = "Direction")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub direction: Option<models::network_device_function::v1_9_0::DataDirection>,
21    /// The maximum number of sustained bytes per second for this network device function.
22    #[serde(rename = "SustainedBytesPerSecond")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub sustained_bytes_per_second: Option<i64>,
25    /// The maximum number of sustained packets per second for this network device function.
26    #[serde(rename = "SustainedPacketsPerSecond")]
27    #[serde(default, skip_serializing_if = "Option::is_none")]
28    pub sustained_packets_per_second: Option<i64>,
29}
30
31impl crate::Metadata<'static> for Limit {
32    const JSON_SCHEMA: &'static str = "NetworkDeviceFunction.v1_9_0.json";
33}