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;

/// Link Layer Data Protocol (LLDP) data received from the remote partner across this link.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct LLDPReceive {
    /// Link Layer Data Protocol (LLDP) chassis ID received from the remote partner across this link.
    #[serde(rename = "ChassisId")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub chassis_id: Option<String>,
    #[serde(rename = "ChassisIdSubtype")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub chassis_id_subtype: Option<models::port::v1_8_0::IEEE802ISubtype>,
    /// The IPv4 management address received from the remote partner across this link.
    #[serde(rename = "ManagementAddressIPv4")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub management_address_ipv4: Option<String>,
    /// The IPv6 management address received from the remote partner across this link.
    #[serde(rename = "ManagementAddressIPv6")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub management_address_ipv6: Option<String>,
    /// The management MAC address received from the remote partner across this link.
    #[serde(rename = "ManagementAddressMAC")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub management_address_mac: Option<String>,
    /// The management VLAN ID received from the remote partner across this link.
    #[serde(rename = "ManagementVlanId")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub management_vlan_id: Option<i64>,
    /// A colon delimited string of hexadecimal octets identifying a port.
    #[serde(rename = "PortId")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub port_id: Option<String>,
    #[serde(rename = "PortIdSubtype")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub port_id_subtype: Option<models::port::v1_8_0::IEEE802ISubtype>,
    /// The system capabilities received from the remote partner across this link.
    #[serde(rename = "SystemCapabilities")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub system_capabilities: Option<Vec<models::port::v1_8_0::LLDPSystemCapabilities>>,
    /// The system description received from the remote partner across this link.
    #[serde(rename = "SystemDescription")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub system_description: Option<String>,
    /// The system name received from the remote partner across this link.
    #[serde(rename = "SystemName")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub system_name: Option<String>,
}

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