redfish_codegen/models/port/v1_9_0/
sfp.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// A small form-factor pluggable (SFP) device attached to a port.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct SFP {
10    #[serde(rename = "FiberConnectionType")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub fiber_connection_type: Option<models::port::v1_9_0::FiberConnectionType>,
13    /// The manufacturer of this SFP.
14    #[serde(rename = "Manufacturer")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub manufacturer: Option<String>,
17    #[serde(rename = "MediumType")]
18    #[serde(default, skip_serializing_if = "Option::is_none")]
19    pub medium_type: Option<models::port::v1_9_0::MediumType>,
20    /// The part number for this SFP.
21    #[serde(rename = "PartNumber")]
22    #[serde(default, skip_serializing_if = "Option::is_none")]
23    pub part_number: Option<String>,
24    /// The serial number for this SFP.
25    #[serde(rename = "SerialNumber")]
26    #[serde(default, skip_serializing_if = "Option::is_none")]
27    pub serial_number: Option<String>,
28    #[serde(rename = "Status")]
29    #[serde(default, skip_serializing_if = "Option::is_none")]
30    pub status: Option<models::resource::Status>,
31    /// The types of SFP devices that can be attached to this port.
32    #[serde(rename = "SupportedSFPTypes")]
33    #[serde(default, skip_serializing_if = "Option::is_none")]
34    pub supported_sfp_types: Option<Vec<models::port::v1_9_0::SFPType>>,
35    #[serde(rename = "Type")]
36    #[serde(default, skip_serializing_if = "Option::is_none")]
37    pub r#type: Option<models::port::v1_9_0::SFPType>,
38}
39
40impl crate::Metadata<'static> for SFP {
41    const JSON_SCHEMA: &'static str = "Port.v1_9_0.json";
42}