pub struct InstanceNetworkInterface {
pub description: String,
pub id: Uuid,
pub instance_id: Uuid,
pub ip: IpAddr,
pub mac: MacAddr,
pub name: Name,
pub primary: bool,
pub subnet_id: Uuid,
pub time_created: DateTime<Utc>,
pub time_modified: DateTime<Utc>,
pub transit_ips: Vec<IpNet>,
pub vpc_id: Uuid,
}Expand description
An InstanceNetworkInterface represents a virtual network interface
device attached to an instance.
JSON schema
{
"description": "An `InstanceNetworkInterface` represents a virtual
network interface device attached to an instance.",
"type": "object",
"required": [
"description",
"id",
"instance_id",
"ip",
"mac",
"name",
"primary",
"subnet_id",
"time_created",
"time_modified",
"vpc_id"
],
"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"
},
"instance_id": {
"description": "The Instance to which the interface belongs.",
"type": "string",
"format": "uuid"
},
"ip": {
"description": "The IP address assigned to this interface.",
"type": "string",
"format": "ip"
},
"mac": {
"description": "The MAC address assigned to this interface.",
"allOf": [
{
"$ref": "#/components/schemas/MacAddr"
}
]
},
"name": {
"description": "unique, mutable, user-controlled identifier for
each resource",
"allOf": [
{
"$ref": "#/components/schemas/Name"
}
]
},
"primary": {
"description": "True if this interface is the primary for the
instance to which it's attached.",
"type": "boolean"
},
"subnet_id": {
"description": "The subnet to which the interface belongs.",
"type": "string",
"format": "uuid"
},
"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"
},
"transit_ips": {
"description": "A set of additional networks that this interface
may send and receive traffic on.",
"default": [],
"type": "array",
"items": {
"$ref": "#/components/schemas/IpNet"
}
},
"vpc_id": {
"description": "The VPC to which the interface belongs.",
"type": "string",
"format": "uuid"
}
}
}Fields§
§description: Stringhuman-readable free-form text about a resource
id: Uuidunique, immutable, system-controlled identifier for each resource
instance_id: UuidThe Instance to which the interface belongs.
ip: IpAddrThe IP address assigned to this interface.
mac: MacAddrThe MAC address assigned to this interface.
name: Nameunique, mutable, user-controlled identifier for each resource
primary: boolTrue if this interface is the primary for the instance to which it’s attached.
subnet_id: UuidThe subnet to which the interface belongs.
time_created: DateTime<Utc>timestamp when this resource was created
time_modified: DateTime<Utc>timestamp when this resource was last modified
transit_ips: Vec<IpNet>A set of additional networks that this interface may send and receive traffic on.
vpc_id: UuidThe VPC to which the interface belongs.
Implementations§
Source§impl InstanceNetworkInterface
impl InstanceNetworkInterface
pub fn builder() -> InstanceNetworkInterface
Trait Implementations§
Source§impl Clone for InstanceNetworkInterface
impl Clone for InstanceNetworkInterface
Source§fn clone(&self) -> InstanceNetworkInterface
fn clone(&self) -> InstanceNetworkInterface
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 InstanceNetworkInterface
impl Debug for InstanceNetworkInterface
Source§impl<'de> Deserialize<'de> for InstanceNetworkInterface
impl<'de> Deserialize<'de> for InstanceNetworkInterface
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<&InstanceNetworkInterface> for InstanceNetworkInterface
impl From<&InstanceNetworkInterface> for InstanceNetworkInterface
Source§fn from(value: &InstanceNetworkInterface) -> Self
fn from(value: &InstanceNetworkInterface) -> Self
Converts to this type from the input type.
Source§impl From<InstanceNetworkInterface> for InstanceNetworkInterface
impl From<InstanceNetworkInterface> for InstanceNetworkInterface
Source§fn from(value: InstanceNetworkInterface) -> Self
fn from(value: InstanceNetworkInterface) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for InstanceNetworkInterface
impl JsonSchema for InstanceNetworkInterface
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 Serialize for InstanceNetworkInterface
impl Serialize for InstanceNetworkInterface
Source§impl TryFrom<InstanceNetworkInterface> for InstanceNetworkInterface
impl TryFrom<InstanceNetworkInterface> for InstanceNetworkInterface
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: InstanceNetworkInterface) -> Result<Self, ConversionError>
fn try_from(value: InstanceNetworkInterface) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for InstanceNetworkInterface
impl RefUnwindSafe for InstanceNetworkInterface
impl Send for InstanceNetworkInterface
impl Sync for InstanceNetworkInterface
impl Unpin for InstanceNetworkInterface
impl UnwindSafe for InstanceNetworkInterface
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