Struct Port

Source
pub struct Port {
Show 43 fields pub odata_context: Option<Context>, pub odata_etag: Option<Etag>, pub odata_id: Id, pub odata_type: Type, pub actions: Option<Actions>, pub active_width: Option<i64>, pub cxl: Option<CXL>, pub capable_protocol_versions: Option<Vec<String>>, pub current_protocol_version: Option<String>, pub current_speed_gbps: Option<f64>, pub description: Option<Description>, pub enabled: Option<bool>, pub environment_metrics: Option<IdRef>, pub ethernet: Option<EthernetProperties>, pub fibre_channel: Option<FibreChannelProperties>, pub function_max_bandwidth: Option<Vec<FunctionMaxBandwidth>>, pub function_min_bandwidth: Option<Vec<FunctionMinBandwidth>>, pub gen_z: Option<GenZ>, pub id: Id, pub infini_band: Option<InfiniBandProperties>, pub interface_enabled: Option<bool>, pub link_configuration: Option<Vec<LinkConfiguration>>, pub link_network_technology: Option<LinkNetworkTechnology>, pub link_state: Option<LinkState>, pub link_status: Option<LinkStatus>, pub link_transition_indicator: Option<i64>, pub links: Option<Links>, pub location: Option<Location>, pub location_indicator_active: Option<bool>, pub max_frame_size: Option<i64>, pub max_speed_gbps: Option<f64>, pub metrics: Option<IdRef>, pub name: Name, pub oem: Option<Oem>, pub port_id: Option<String>, pub port_medium: Option<PortMedium>, pub port_protocol: Option<Protocol>, pub port_type: Option<PortType>, pub remote_port_id: Option<String>, pub sfp: Option<SFP>, pub signal_detected: Option<bool>, pub status: Option<Status>, pub width: Option<i64>,
}
Expand description

The Port schema contains properties that describe a port of a switch, controller, chassis, or any other device that could be connected to another entity.

Fields§

§odata_context: Option<Context>§odata_etag: Option<Etag>§odata_id: Id§odata_type: Type§actions: Option<Actions>§active_width: Option<i64>

The number of active lanes for this interface.

§cxl: Option<CXL>§capable_protocol_versions: Option<Vec<String>>

The protocol versions capable of being sent over this port.

§current_protocol_version: Option<String>

The protocol version being sent over this port.

§current_speed_gbps: Option<f64>

The current speed of this port.

§description: Option<Description>§enabled: Option<bool>

An indication of whether this port is enabled.

§environment_metrics: Option<IdRef>§ethernet: Option<EthernetProperties>§fibre_channel: Option<FibreChannelProperties>§function_max_bandwidth: Option<Vec<FunctionMaxBandwidth>>

An array of maximum bandwidth allocation percentages for the functions associated with this port.

§function_min_bandwidth: Option<Vec<FunctionMinBandwidth>>

An array of minimum bandwidth allocation percentages for the functions associated with this port.

§gen_z: Option<GenZ>§id: Id§infini_band: Option<InfiniBandProperties>§interface_enabled: Option<bool>

An indication of whether the interface is enabled.

§link_configuration: Option<Vec<LinkConfiguration>>

The link configuration of this port.

§link_network_technology: Option<LinkNetworkTechnology>§link_state: Option<LinkState>§link_status: Option<LinkStatus>§link_transition_indicator: Option<i64>

The number of link state transitions for this interface.

§links: Option<Links>§location: Option<Location>§location_indicator_active: Option<bool>

An indicator allowing an operator to physically locate this resource.

§max_frame_size: Option<i64>

The maximum frame size supported by the port.

§max_speed_gbps: Option<f64>

The maximum speed of this port as currently configured.

§metrics: Option<IdRef>§name: Name§oem: Option<Oem>§port_id: Option<String>

The label of this port on the physical package for this port.

§port_medium: Option<PortMedium>§port_protocol: Option<Protocol>§port_type: Option<PortType>§remote_port_id: Option<String>

The identifier of the remote port to which this port is connected.

§sfp: Option<SFP>§signal_detected: Option<bool>

An indication of whether a signal is detected on this interface.

§status: Option<Status>§width: Option<i64>

The number of lanes, phys, or other physical transport links that this port contains.

Trait Implementations§

Source§

impl Clone for Port

Source§

fn clone(&self) -> Port

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Port

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Port

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Port

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Metadata<'static> for Port

Source§

const JSON_SCHEMA: &'static str = "Port.v1_9_0.json"

Name of the json-schema file that describes the entity that implements this trait. Should be only the file name, so that it can be resolved relative to the URL of the redfish service, or the public Redfish schema index.
Source§

impl Serialize for Port

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Port

§

impl RefUnwindSafe for Port

§

impl Send for Port

§

impl Sync for Port

§

impl Unpin for Port

§

impl UnwindSafe for Port

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,