pub struct InstanceNetworkInterfaceCreate {
pub description: String,
pub ip_config: PrivateIpStackCreate,
pub name: Name,
pub subnet_name: Name,
pub vpc_name: Name,
}Expand description
Create-time parameters for an InstanceNetworkInterface
JSON schema
{
"description": "Create-time parameters for an
`InstanceNetworkInterface`",
"type": "object",
"required": [
"description",
"name",
"subnet_name",
"vpc_name"
],
"properties": {
"description": {
"type": "string"
},
"ip_config": {
"description": "The IP stack configuration for this
interface.\n\nIf not provided, a default configuration will be used,
which creates a dual-stack IPv4 / IPv6 interface.",
"default": {
"type": "dual_stack",
"value": {
"v4": {
"ip": {
"type": "auto"
},
"transit_ips": []
},
"v6": {
"ip": {
"type": "auto"
},
"transit_ips": []
}
}
},
"allOf": [
{
"$ref": "#/components/schemas/PrivateIpStackCreate"
}
]
},
"name": {
"$ref": "#/components/schemas/Name"
},
"subnet_name": {
"description": "The VPC Subnet in which to create the interface.",
"allOf": [
{
"$ref": "#/components/schemas/Name"
}
]
},
"vpc_name": {
"description": "The VPC in which to create the interface.",
"allOf": [
{
"$ref": "#/components/schemas/Name"
}
]
}
}
}Fields§
§description: String§ip_config: PrivateIpStackCreateThe IP stack configuration for this interface.
If not provided, a default configuration will be used, which creates a dual-stack IPv4 / IPv6 interface.
name: Name§subnet_name: NameThe VPC Subnet in which to create the interface.
vpc_name: NameThe VPC in which to create the interface.
Implementations§
Trait Implementations§
Source§impl Clone for InstanceNetworkInterfaceCreate
impl Clone for InstanceNetworkInterfaceCreate
Source§fn clone(&self) -> InstanceNetworkInterfaceCreate
fn clone(&self) -> InstanceNetworkInterfaceCreate
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<'de> Deserialize<'de> for InstanceNetworkInterfaceCreate
impl<'de> Deserialize<'de> for InstanceNetworkInterfaceCreate
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<InstanceNetworkInterfaceCreate> for InstanceNetworkInterfaceCreate
impl From<InstanceNetworkInterfaceCreate> for InstanceNetworkInterfaceCreate
Source§fn from(value: InstanceNetworkInterfaceCreate) -> Self
fn from(value: InstanceNetworkInterfaceCreate) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for InstanceNetworkInterfaceCreate
impl JsonSchema for InstanceNetworkInterfaceCreate
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<InstanceNetworkInterfaceCreate> for InstanceNetworkInterfaceCreate
impl TryFrom<InstanceNetworkInterfaceCreate> for InstanceNetworkInterfaceCreate
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: InstanceNetworkInterfaceCreate,
) -> Result<Self, ConversionError>
fn try_from( value: InstanceNetworkInterfaceCreate, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for InstanceNetworkInterfaceCreate
impl RefUnwindSafe for InstanceNetworkInterfaceCreate
impl Send for InstanceNetworkInterfaceCreate
impl Sync for InstanceNetworkInterfaceCreate
impl Unpin for InstanceNetworkInterfaceCreate
impl UnsafeUnpin for InstanceNetworkInterfaceCreate
impl UnwindSafe for InstanceNetworkInterfaceCreate
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