#[non_exhaustive]pub struct NetworkPeeringConnectionStatusTrafficConfiguration {
pub export_custom_routes_to_peer: Option<bool>,
pub export_subnet_routes_with_public_ip_to_peer: Option<bool>,
pub import_custom_routes_from_peer: Option<bool>,
pub import_subnet_routes_with_public_ip_from_peer: Option<bool>,
pub stack_type: Option<StackType>,
/* private fields */
}networks only.Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.export_custom_routes_to_peer: Option<bool>Whether custom routes are being exported to the peer network.
export_subnet_routes_with_public_ip_to_peer: Option<bool>Whether subnet routes with public IP ranges are being exported to the peer network.
import_custom_routes_from_peer: Option<bool>Whether custom routes are being imported from the peer network.
import_subnet_routes_with_public_ip_from_peer: Option<bool>Whether subnet routes with public IP ranges are being imported from the peer network.
stack_type: Option<StackType>Which IP version(s) of traffic and routes are being imported or exported between peer networks.
Implementations§
Source§impl NetworkPeeringConnectionStatusTrafficConfiguration
impl NetworkPeeringConnectionStatusTrafficConfiguration
Sourcepub fn set_export_custom_routes_to_peer<T>(self, v: T) -> Self
pub fn set_export_custom_routes_to_peer<T>(self, v: T) -> Self
Sets the value of export_custom_routes_to_peer.
§Example
let x = NetworkPeeringConnectionStatusTrafficConfiguration::new().set_export_custom_routes_to_peer(true);Sourcepub fn set_or_clear_export_custom_routes_to_peer<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_export_custom_routes_to_peer<T>(self, v: Option<T>) -> Self
Sets or clears the value of export_custom_routes_to_peer.
§Example
let x = NetworkPeeringConnectionStatusTrafficConfiguration::new().set_or_clear_export_custom_routes_to_peer(Some(false));
let x = NetworkPeeringConnectionStatusTrafficConfiguration::new().set_or_clear_export_custom_routes_to_peer(None::<bool>);Sourcepub fn set_export_subnet_routes_with_public_ip_to_peer<T>(self, v: T) -> Self
pub fn set_export_subnet_routes_with_public_ip_to_peer<T>(self, v: T) -> Self
Sets the value of export_subnet_routes_with_public_ip_to_peer.
§Example
let x = NetworkPeeringConnectionStatusTrafficConfiguration::new().set_export_subnet_routes_with_public_ip_to_peer(true);Sourcepub fn set_or_clear_export_subnet_routes_with_public_ip_to_peer<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_export_subnet_routes_with_public_ip_to_peer<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of export_subnet_routes_with_public_ip_to_peer.
§Example
let x = NetworkPeeringConnectionStatusTrafficConfiguration::new().set_or_clear_export_subnet_routes_with_public_ip_to_peer(Some(false));
let x = NetworkPeeringConnectionStatusTrafficConfiguration::new().set_or_clear_export_subnet_routes_with_public_ip_to_peer(None::<bool>);Sourcepub fn set_import_custom_routes_from_peer<T>(self, v: T) -> Self
pub fn set_import_custom_routes_from_peer<T>(self, v: T) -> Self
Sets the value of import_custom_routes_from_peer.
§Example
let x = NetworkPeeringConnectionStatusTrafficConfiguration::new().set_import_custom_routes_from_peer(true);Sourcepub fn set_or_clear_import_custom_routes_from_peer<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_import_custom_routes_from_peer<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of import_custom_routes_from_peer.
§Example
let x = NetworkPeeringConnectionStatusTrafficConfiguration::new().set_or_clear_import_custom_routes_from_peer(Some(false));
let x = NetworkPeeringConnectionStatusTrafficConfiguration::new().set_or_clear_import_custom_routes_from_peer(None::<bool>);Sourcepub fn set_import_subnet_routes_with_public_ip_from_peer<T>(self, v: T) -> Self
pub fn set_import_subnet_routes_with_public_ip_from_peer<T>(self, v: T) -> Self
Sets the value of import_subnet_routes_with_public_ip_from_peer.
§Example
let x = NetworkPeeringConnectionStatusTrafficConfiguration::new().set_import_subnet_routes_with_public_ip_from_peer(true);Sourcepub fn set_or_clear_import_subnet_routes_with_public_ip_from_peer<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_import_subnet_routes_with_public_ip_from_peer<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of import_subnet_routes_with_public_ip_from_peer.
§Example
let x = NetworkPeeringConnectionStatusTrafficConfiguration::new().set_or_clear_import_subnet_routes_with_public_ip_from_peer(Some(false));
let x = NetworkPeeringConnectionStatusTrafficConfiguration::new().set_or_clear_import_subnet_routes_with_public_ip_from_peer(None::<bool>);Sourcepub fn set_stack_type<T>(self, v: T) -> Self
pub fn set_stack_type<T>(self, v: T) -> Self
Sets the value of stack_type.
§Example
use google_cloud_compute_v1::model::network_peering_connection_status_traffic_configuration::StackType;
let x0 = NetworkPeeringConnectionStatusTrafficConfiguration::new().set_stack_type(StackType::Ipv4Only);Sourcepub fn set_or_clear_stack_type<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_stack_type<T>(self, v: Option<T>) -> Self
Sets or clears the value of stack_type.
§Example
use google_cloud_compute_v1::model::network_peering_connection_status_traffic_configuration::StackType;
let x0 = NetworkPeeringConnectionStatusTrafficConfiguration::new().set_or_clear_stack_type(Some(StackType::Ipv4Only));
let x_none = NetworkPeeringConnectionStatusTrafficConfiguration::new().set_or_clear_stack_type(None::<StackType>);Trait Implementations§
Source§impl Clone for NetworkPeeringConnectionStatusTrafficConfiguration
impl Clone for NetworkPeeringConnectionStatusTrafficConfiguration
Source§fn clone(&self) -> NetworkPeeringConnectionStatusTrafficConfiguration
fn clone(&self) -> NetworkPeeringConnectionStatusTrafficConfiguration
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for NetworkPeeringConnectionStatusTrafficConfiguration
impl Default for NetworkPeeringConnectionStatusTrafficConfiguration
Source§fn default() -> NetworkPeeringConnectionStatusTrafficConfiguration
fn default() -> NetworkPeeringConnectionStatusTrafficConfiguration
impl StructuralPartialEq for NetworkPeeringConnectionStatusTrafficConfiguration
Auto Trait Implementations§
impl Freeze for NetworkPeeringConnectionStatusTrafficConfiguration
impl RefUnwindSafe for NetworkPeeringConnectionStatusTrafficConfiguration
impl Send for NetworkPeeringConnectionStatusTrafficConfiguration
impl Sync for NetworkPeeringConnectionStatusTrafficConfiguration
impl Unpin for NetworkPeeringConnectionStatusTrafficConfiguration
impl UnsafeUnpin for NetworkPeeringConnectionStatusTrafficConfiguration
impl UnwindSafe for NetworkPeeringConnectionStatusTrafficConfiguration
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request