pub struct NetworkConfigInput {
pub subnet: String,
pub mac: Option<String>,
pub security_groups: Option<Vec<String>>,
pub floating_ip_assignment: Option<NetworkConfigInputFloatingIpAssignment>,
pub addresses: Option<Vec<AddressRequestInput>>,
}Fields§
§subnet: StringSubnet UUID or complete VPC/subnet CRN. Bare names require a VPC parent and are rejected here.
mac: Option<String>Optional MAC address. Must be locally-administered (X2:, X6:, XA:, XE: in the first octet). Generated when omitted.
security_groups: Option<Vec<String>>Account-scoped security group references (UUID, CRN or name) to attach to this NIC. Each must be owned by the same account. Empty list = no per-NIC ACLs (the platform’s default-allow stays in force).
floating_ip_assignment: Option<NetworkConfigInputFloatingIpAssignment>Allocate public floating IPs for this NIC at launch. Explicit families require matching guest addresses and internet routes. Detach leaves the FIP reserved. No ordinary public IPv4 mapping exists.
addresses: Option<Vec<AddressRequestInput>>Implementations§
Trait Implementations§
Source§impl Clone for NetworkConfigInput
impl Clone for NetworkConfigInput
Source§impl Debug for NetworkConfigInput
impl Debug for NetworkConfigInput
Source§impl<'de> Deserialize<'de> for NetworkConfigInput
impl<'de> Deserialize<'de> for NetworkConfigInput
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
Auto Trait Implementations§
impl Freeze for NetworkConfigInput
impl RefUnwindSafe for NetworkConfigInput
impl Send for NetworkConfigInput
impl Sync for NetworkConfigInput
impl Unpin for NetworkConfigInput
impl UnsafeUnpin for NetworkConfigInput
impl UnwindSafe for NetworkConfigInput
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