#[non_exhaustive]pub struct VpcNetwork {
pub network_tags: Vec<String>,
pub network_name: Option<NetworkName>,
/* private fields */
}Expand description
Cloud VPC Network used to run the infrastructure.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.Optional. List of network tags to apply to the job.
network_name: Option<NetworkName>The Cloud VPC network identifier.
Implementations§
Source§impl VpcNetwork
impl VpcNetwork
pub fn new() -> Self
Sets the value of network_tags.
Sourcepub fn set_network_name<T: Into<Option<NetworkName>>>(self, v: T) -> Self
pub fn set_network_name<T: Into<Option<NetworkName>>>(self, v: T) -> Self
Sets the value of network_name.
Note that all the setters affecting network_name are mutually
exclusive.
Sourcepub fn network(&self) -> Option<&String>
pub fn network(&self) -> Option<&String>
The value of network_name
if it holds a Network, None if the field is not set or
holds a different branch.
Sourcepub fn set_network<T: Into<String>>(self, v: T) -> Self
pub fn set_network<T: Into<String>>(self, v: T) -> Self
Sets the value of network_name
to hold a Network.
Note that all the setters affecting network_name are
mutually exclusive.
Sourcepub fn sub_network(&self) -> Option<&String>
pub fn sub_network(&self) -> Option<&String>
The value of network_name
if it holds a SubNetwork, None if the field is not set or
holds a different branch.
Sourcepub fn set_sub_network<T: Into<String>>(self, v: T) -> Self
pub fn set_sub_network<T: Into<String>>(self, v: T) -> Self
Sets the value of network_name
to hold a SubNetwork.
Note that all the setters affecting network_name are
mutually exclusive.
Trait Implementations§
Source§impl Clone for VpcNetwork
impl Clone for VpcNetwork
Source§fn clone(&self) -> VpcNetwork
fn clone(&self) -> VpcNetwork
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 VpcNetwork
impl Debug for VpcNetwork
Source§impl Default for VpcNetwork
impl Default for VpcNetwork
Source§fn default() -> VpcNetwork
fn default() -> VpcNetwork
Returns the “default value” for a type. Read more
Source§impl PartialEq for VpcNetwork
impl PartialEq for VpcNetwork
impl StructuralPartialEq for VpcNetwork
Auto Trait Implementations§
impl Freeze for VpcNetwork
impl RefUnwindSafe for VpcNetwork
impl Send for VpcNetwork
impl Sync for VpcNetwork
impl Unpin for VpcNetwork
impl UnwindSafe for VpcNetwork
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