pub struct NetworkInterfaceSpec {
pub subnet: String,
pub security_groups: Vec<String>,
}Expand description
The spec of a network interface a launch creates.
Fields§
§subnet: StringThe full name of the subnet to create the interface in,
//network.origincloudapis.eu/projects/{project}/zones/{zone}/subnets/{subnet},
in the launch’s project and zone. Left empty, the project’s default
subnet, in its default VPC: the first launch that needs them creates
both, the VPC with an internet gateway attached and the subnet
assigning each interface a public address. In a subnet that assigns
public addresses, a launch whose address can’t be assigned ends
FAILED with the reason.
security_groups: Vec<String>The full names of the security groups to put the interface in,
//network.origincloudapis.eu/projects/{project}/regions/{region}/securityGroups/{security_group},
in the launch’s project and region, in the subnet’s VPC. Left empty,
the VPC’s default security group when it has one, and none when it
has none: an interface in no security group admits and sends nothing
but address resolution and replies to its own traffic.
Trait Implementations§
Source§impl Clone for NetworkInterfaceSpec
impl Clone for NetworkInterfaceSpec
Source§impl Debug for NetworkInterfaceSpec
impl Debug for NetworkInterfaceSpec
Source§impl Default for NetworkInterfaceSpec
impl Default for NetworkInterfaceSpec
Source§impl<'de> Deserialize<'de> for NetworkInterfaceSpec
impl<'de> Deserialize<'de> for NetworkInterfaceSpec
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>,
impl Eq for NetworkInterfaceSpec
Source§impl Hash for NetworkInterfaceSpec
impl Hash for NetworkInterfaceSpec
Source§impl Message for NetworkInterfaceSpec
impl Message for NetworkInterfaceSpec
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for NetworkInterfaceSpec
impl PartialEq for NetworkInterfaceSpec
Source§impl Serialize for NetworkInterfaceSpec
impl Serialize for NetworkInterfaceSpec
impl StructuralPartialEq for NetworkInterfaceSpec
Auto Trait Implementations§
impl Forget for NetworkInterfaceSpec
impl Freeze for NetworkInterfaceSpec
impl Move for NetworkInterfaceSpec
impl RefUnwindSafe for NetworkInterfaceSpec
impl Send for NetworkInterfaceSpec
impl Sync for NetworkInterfaceSpec
impl Unpin for NetworkInterfaceSpec
impl UnsafeUnpin for NetworkInterfaceSpec
impl UnwindSafe for NetworkInterfaceSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<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
key and return true if they are equal.