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;

/// Fibre Channel-specific properties for a port.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct FibreChannelProperties {
    /// An array of configured World Wide Names (WWN) that are associated with this network port, including the programmed address of the lowest numbered network device function, the configured but not active address, if applicable, the address for hardware port teaming, or other network addresses.
    #[serde(rename = "AssociatedWorldWideNames")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub associated_world_wide_names: Option<Vec<String>>,
    /// The Fibre Channel Fabric Name provided by the switch.
    #[serde(rename = "FabricName")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub fabric_name: Option<String>,
    /// The number of ports not on the associated device that the associated device has discovered through this port.
    #[serde(rename = "NumberDiscoveredRemotePorts")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub number_discovered_remote_ports: Option<i64>,
    #[serde(rename = "PortConnectionType")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub port_connection_type: Option<models::port::v1_9_0::PortConnectionType>,
}

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