#[non_exhaustive]pub struct RoutingVPC {
pub uri: String,
pub required_for_new_site_to_site_data_transfer_spokes: bool,
/* private fields */
}Expand description
RoutingVPC contains information about the VPC networks associated with the spokes of a Network Connectivity Center hub.
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.uri: StringThe URI of the VPC network.
required_for_new_site_to_site_data_transfer_spokes: boolOutput only. If true, indicates that this VPC network is currently associated with spokes that use the data transfer feature (spokes where the site_to_site_data_transfer field is set to true). If you create new spokes that use data transfer, they must be associated with this VPC network. At most, one VPC network will have this field set to true.
Implementations§
Source§impl RoutingVPC
impl RoutingVPC
pub fn new() -> Self
Sourcepub fn set_required_for_new_site_to_site_data_transfer_spokes<T: Into<bool>>(
self,
v: T,
) -> Self
pub fn set_required_for_new_site_to_site_data_transfer_spokes<T: Into<bool>>( self, v: T, ) -> Self
Sets the value of required_for_new_site_to_site_data_transfer_spokes.
§Example
ⓘ
let x = RoutingVPC::new().set_required_for_new_site_to_site_data_transfer_spokes(true);Trait Implementations§
Source§impl Clone for RoutingVPC
impl Clone for RoutingVPC
Source§fn clone(&self) -> RoutingVPC
fn clone(&self) -> RoutingVPC
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 RoutingVPC
impl Debug for RoutingVPC
Source§impl Default for RoutingVPC
impl Default for RoutingVPC
Source§fn default() -> RoutingVPC
fn default() -> RoutingVPC
Returns the “default value” for a type. Read more
Source§impl PartialEq for RoutingVPC
impl PartialEq for RoutingVPC
impl StructuralPartialEq for RoutingVPC
Auto Trait Implementations§
impl Freeze for RoutingVPC
impl RefUnwindSafe for RoutingVPC
impl Send for RoutingVPC
impl Sync for RoutingVPC
impl Unpin for RoutingVPC
impl UnwindSafe for RoutingVPC
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