redfish-codegen 0.3.1

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


/// The port metrics for network ports, including Ethernet, Fibre Channel, and InfiniBand, that are not specific to one of these protocols.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct Networking {
    /// The total number of RDMA protection errors.
    #[serde(rename = "RDMAProtectionErrors")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rdma_protection_errors: Option<i64>,
    /// The total number of RDMA protocol errors.
    #[serde(rename = "RDMAProtocolErrors")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rdma_protocol_errors: Option<i64>,
    /// The total number of RDMA bytes received on a port since reset.
    #[serde(rename = "RDMARXBytes")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rdmarx_bytes: Option<i64>,
    /// The total number of RDMA requests received on a port since reset.
    #[serde(rename = "RDMARXRequests")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rdmarx_requests: Option<i64>,
    /// The total number of RDMA bytes transmitted on a port since reset.
    #[serde(rename = "RDMATXBytes")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rdmatx_bytes: Option<i64>,
    /// The total number of RDMA read requests transmitted on a port since reset.
    #[serde(rename = "RDMATXReadRequests")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rdmatx_read_requests: Option<i64>,
    /// The total number of RDMA requests transmitted on a port since reset.
    #[serde(rename = "RDMATXRequests")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rdmatx_requests: Option<i64>,
    /// The total number of RDMA send requests transmitted on a port since reset.
    #[serde(rename = "RDMATXSendRequests")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rdmatx_send_requests: Option<i64>,
    /// The total number of RDMA write requests transmitted on a port since reset.
    #[serde(rename = "RDMATXWriteRequests")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rdmatx_write_requests: Option<i64>,
    /// The total number of valid broadcast frames received on a port since reset.
    #[serde(rename = "RXBroadcastFrames")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rx_broadcast_frames: Option<i64>,
    /// The total number of frames discarded in a port's receive path since reset.
    #[serde(rename = "RXDiscards")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rx_discards: Option<i64>,
    /// The total number of frames received with frame check sequence (FCS) errors on a port since reset.
    #[serde(rename = "RXFCSErrors")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rxfcs_errors: Option<i64>,
    /// The total number of false carrier errors received from phy on a port since reset.
    #[serde(rename = "RXFalseCarrierErrors")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rx_false_carrier_errors: Option<i64>,
    /// The total number of frames received with alignment errors on a port since reset.
    #[serde(rename = "RXFrameAlignmentErrors")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rx_frame_alignment_errors: Option<i64>,
    /// The total number of frames received on a port since reset.
    #[serde(rename = "RXFrames")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rx_frames: Option<i64>,
    /// The total number of valid multicast frames received on a port since reset.
    #[serde(rename = "RXMulticastFrames")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rx_multicast_frames: Option<i64>,
    /// The total number of frames that exceed the maximum frame size.
    #[serde(rename = "RXOversizeFrames")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rx_oversize_frames: Option<i64>,
    /// The total number of priority flow control (PFC) frames received on a port since reset.
    #[serde(rename = "RXPFCFrames")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rxpfc_frames: Option<i64>,
    /// The total number of flow control frames from the network to pause transmission.
    #[serde(rename = "RXPauseXOFFFrames")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rx_pause_xoff_frames: Option<i64>,
    /// The total number of flow control frames from the network to resume transmission.
    #[serde(rename = "RXPauseXONFrames")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rx_pause_xon_frames: Option<i64>,
    /// The total number of frames that are smaller than the minimum frame size of 64 bytes.
    #[serde(rename = "RXUndersizeFrames")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rx_undersize_frames: Option<i64>,
    /// The total number of valid unicast frames received on a port since reset.
    #[serde(rename = "RXUnicastFrames")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rx_unicast_frames: Option<i64>,
    /// The total number of good broadcast frames transmitted on a port since reset.
    #[serde(rename = "TXBroadcastFrames")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tx_broadcast_frames: Option<i64>,
    /// The total number of frames discarded in a port's transmit path since reset.
    #[serde(rename = "TXDiscards")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tx_discards: Option<i64>,
    /// The number of times a single transmitted frame encountered more than 15 collisions.
    #[serde(rename = "TXExcessiveCollisions")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tx_excessive_collisions: Option<i64>,
    /// The total number of frames transmitted on a port since reset.
    #[serde(rename = "TXFrames")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tx_frames: Option<i64>,
    /// The total number of collisions that occurred after one slot time as defined by IEEE 802.3.
    #[serde(rename = "TXLateCollisions")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tx_late_collisions: Option<i64>,
    /// The total number of good multicast frames transmitted on a port since reset.
    #[serde(rename = "TXMulticastFrames")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tx_multicast_frames: Option<i64>,
    /// The times that a transmitted frame encountered 2-15 collisions.
    #[serde(rename = "TXMultipleCollisions")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tx_multiple_collisions: Option<i64>,
    /// The total number of priority flow control (PFC) frames sent on a port since reset.
    #[serde(rename = "TXPFCFrames")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub txpfc_frames: Option<i64>,
    /// The total number of XOFF frames transmitted to the network.
    #[serde(rename = "TXPauseXOFFFrames")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tx_pause_xoff_frames: Option<i64>,
    /// The total number of XON frames transmitted to the network.
    #[serde(rename = "TXPauseXONFrames")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tx_pause_xon_frames: Option<i64>,
    /// The times that a successfully transmitted frame encountered a single collision.
    #[serde(rename = "TXSingleCollisions")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tx_single_collisions: Option<i64>,
    /// The total number of good unicast frames transmitted on a port since reset.
    #[serde(rename = "TXUnicastFrames")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tx_unicast_frames: Option<i64>,
}

impl crate::Metadata<'static> for Networking {
    const JSON_SCHEMA: &'static str = "PortMetrics.v1_4_0.json";
}