pub enum SwitchPortGeometry {
Qsfp28x1,
Qsfp28x2,
Sfp28x4,
}Expand description
The link geometry associated with a switch port.
JSON schema
{
"description": "The link geometry associated with a switch port.",
"oneOf": [
{
"description": "The port contains a single QSFP28 link with four
lanes.",
"type": "string",
"enum": [
"qsfp28x1"
]
},
{
"description": "The port contains two QSFP28 links each with two
lanes.",
"type": "string",
"enum": [
"qsfp28x2"
]
},
{
"description": "The port contains four SFP28 links each with one
lane.",
"type": "string",
"enum": [
"sfp28x4"
]
}
]
}Variants§
Qsfp28x1
The port contains a single QSFP28 link with four lanes.
Qsfp28x2
The port contains two QSFP28 links each with two lanes.
Sfp28x4
The port contains four SFP28 links each with one lane.
Trait Implementations§
Source§impl Clone for SwitchPortGeometry
impl Clone for SwitchPortGeometry
Source§fn clone(&self) -> SwitchPortGeometry
fn clone(&self) -> SwitchPortGeometry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SwitchPortGeometry
impl Debug for SwitchPortGeometry
Source§impl<'de> Deserialize<'de> for SwitchPortGeometry
impl<'de> Deserialize<'de> for SwitchPortGeometry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 Display for SwitchPortGeometry
impl Display for SwitchPortGeometry
Source§impl From<&SwitchPortGeometry> for SwitchPortGeometry
impl From<&SwitchPortGeometry> for SwitchPortGeometry
Source§fn from(value: &SwitchPortGeometry) -> Self
fn from(value: &SwitchPortGeometry) -> Self
Converts to this type from the input type.
Source§impl FromStr for SwitchPortGeometry
impl FromStr for SwitchPortGeometry
Source§impl Hash for SwitchPortGeometry
impl Hash for SwitchPortGeometry
Source§impl JsonSchema for SwitchPortGeometry
impl JsonSchema for SwitchPortGeometry
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Ord for SwitchPortGeometry
impl Ord for SwitchPortGeometry
Source§fn cmp(&self, other: &SwitchPortGeometry) -> Ordering
fn cmp(&self, other: &SwitchPortGeometry) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SwitchPortGeometry
impl PartialEq for SwitchPortGeometry
Source§impl PartialOrd for SwitchPortGeometry
impl PartialOrd for SwitchPortGeometry
Source§impl Serialize for SwitchPortGeometry
impl Serialize for SwitchPortGeometry
Source§impl TryFrom<&String> for SwitchPortGeometry
impl TryFrom<&String> for SwitchPortGeometry
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for SwitchPortGeometry
impl TryFrom<&str> for SwitchPortGeometry
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for SwitchPortGeometry
impl TryFrom<String> for SwitchPortGeometry
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl Copy for SwitchPortGeometry
impl Eq for SwitchPortGeometry
impl StructuralPartialEq for SwitchPortGeometry
Auto Trait Implementations§
impl Freeze for SwitchPortGeometry
impl RefUnwindSafe for SwitchPortGeometry
impl Send for SwitchPortGeometry
impl Sync for SwitchPortGeometry
impl Unpin for SwitchPortGeometry
impl UnwindSafe for SwitchPortGeometry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.