pub struct SwitchPortSettingsIdentity {
pub description: String,
pub id: Uuid,
pub name: Name,
pub time_created: DateTime<Utc>,
pub time_modified: DateTime<Utc>,
}Expand description
A switch port settings identity whose id may be used to view additional details.
JSON schema
{
"description": "A switch port settings identity whose id may be used to
view additional details.",
"type": "object",
"required": [
"description",
"id",
"name",
"time_created",
"time_modified"
],
"properties": {
"description": {
"description": "human-readable free-form text about a resource",
"type": "string"
},
"id": {
"description": "unique, immutable, system-controlled identifier for
each resource",
"type": "string",
"format": "uuid"
},
"name": {
"description": "unique, mutable, user-controlled identifier for
each resource",
"allOf": [
{
"$ref": "#/components/schemas/Name"
}
]
},
"time_created": {
"description": "timestamp when this resource was created",
"type": "string",
"format": "date-time"
},
"time_modified": {
"description": "timestamp when this resource was last modified",
"type": "string",
"format": "date-time"
}
}
}Fields§
§description: Stringhuman-readable free-form text about a resource
id: Uuidunique, immutable, system-controlled identifier for each resource
name: Nameunique, mutable, user-controlled identifier for each resource
time_created: DateTime<Utc>timestamp when this resource was created
time_modified: DateTime<Utc>timestamp when this resource was last modified
Implementations§
Source§impl SwitchPortSettingsIdentity
impl SwitchPortSettingsIdentity
pub fn builder() -> SwitchPortSettingsIdentity
Trait Implementations§
Source§impl Clone for SwitchPortSettingsIdentity
impl Clone for SwitchPortSettingsIdentity
Source§fn clone(&self) -> SwitchPortSettingsIdentity
fn clone(&self) -> SwitchPortSettingsIdentity
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 SwitchPortSettingsIdentity
impl Debug for SwitchPortSettingsIdentity
Source§impl<'de> Deserialize<'de> for SwitchPortSettingsIdentity
impl<'de> Deserialize<'de> for SwitchPortSettingsIdentity
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 From<&SwitchPortSettingsIdentity> for SwitchPortSettingsIdentity
impl From<&SwitchPortSettingsIdentity> for SwitchPortSettingsIdentity
Source§fn from(value: &SwitchPortSettingsIdentity) -> Self
fn from(value: &SwitchPortSettingsIdentity) -> Self
Converts to this type from the input type.
Source§impl From<SwitchPortSettingsIdentity> for SwitchPortSettingsIdentity
impl From<SwitchPortSettingsIdentity> for SwitchPortSettingsIdentity
Source§fn from(value: SwitchPortSettingsIdentity) -> Self
fn from(value: SwitchPortSettingsIdentity) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for SwitchPortSettingsIdentity
impl JsonSchema for SwitchPortSettingsIdentity
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 TryFrom<SwitchPortSettingsIdentity> for SwitchPortSettingsIdentity
impl TryFrom<SwitchPortSettingsIdentity> for SwitchPortSettingsIdentity
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SwitchPortSettingsIdentity) -> Result<Self, ConversionError>
fn try_from(value: SwitchPortSettingsIdentity) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SwitchPortSettingsIdentity
impl RefUnwindSafe for SwitchPortSettingsIdentity
impl Send for SwitchPortSettingsIdentity
impl Sync for SwitchPortSettingsIdentity
impl Unpin for SwitchPortSettingsIdentity
impl UnwindSafe for SwitchPortSettingsIdentity
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