#[non_exhaustive]pub struct VpnGatewayStatusVpnConnection {
pub peer_external_gateway: Option<String>,
pub peer_gcp_gateway: Option<String>,
pub state: Option<VpnGatewayStatusHighAvailabilityRequirementState>,
pub tunnels: Vec<VpnGatewayStatusTunnel>,
/* private fields */
}vpn-gateways only.Expand description
A VPN connection contains all VPN tunnels connected from this VpnGateway to the same peer gateway. The peer gateway could either be an external VPN gateway or a Google Cloud VPN gateway.
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.peer_external_gateway: Option<String>Output only. URL reference to the peer external VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.
peer_gcp_gateway: Option<String>Output only. URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway.
state: Option<VpnGatewayStatusHighAvailabilityRequirementState>HighAvailabilityRequirementState for the VPN connection.
tunnels: Vec<VpnGatewayStatusTunnel>List of VPN tunnels that are in this VPN connection.
Implementations§
Source§impl VpnGatewayStatusVpnConnection
impl VpnGatewayStatusVpnConnection
Sourcepub fn set_peer_external_gateway<T>(self, v: T) -> Self
pub fn set_peer_external_gateway<T>(self, v: T) -> Self
Sets the value of peer_external_gateway.
§Example
let x = VpnGatewayStatusVpnConnection::new().set_peer_external_gateway("example");Sourcepub fn set_or_clear_peer_external_gateway<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_peer_external_gateway<T>(self, v: Option<T>) -> Self
Sets or clears the value of peer_external_gateway.
§Example
let x = VpnGatewayStatusVpnConnection::new().set_or_clear_peer_external_gateway(Some("example"));
let x = VpnGatewayStatusVpnConnection::new().set_or_clear_peer_external_gateway(None::<String>);Sourcepub fn set_peer_gcp_gateway<T>(self, v: T) -> Self
pub fn set_peer_gcp_gateway<T>(self, v: T) -> Self
Sets the value of peer_gcp_gateway.
§Example
let x = VpnGatewayStatusVpnConnection::new().set_peer_gcp_gateway("example");Sourcepub fn set_or_clear_peer_gcp_gateway<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_peer_gcp_gateway<T>(self, v: Option<T>) -> Self
Sets or clears the value of peer_gcp_gateway.
§Example
let x = VpnGatewayStatusVpnConnection::new().set_or_clear_peer_gcp_gateway(Some("example"));
let x = VpnGatewayStatusVpnConnection::new().set_or_clear_peer_gcp_gateway(None::<String>);Sourcepub fn set_or_clear_state<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_state<T>(self, v: Option<T>) -> Self
Sets or clears the value of state.
§Example
use google_cloud_compute_v1::model::VpnGatewayStatusHighAvailabilityRequirementState;
let x = VpnGatewayStatusVpnConnection::new().set_or_clear_state(Some(VpnGatewayStatusHighAvailabilityRequirementState::default()/* use setters */));
let x = VpnGatewayStatusVpnConnection::new().set_or_clear_state(None::<VpnGatewayStatusHighAvailabilityRequirementState>);Sourcepub fn set_tunnels<T, V>(self, v: T) -> Self
pub fn set_tunnels<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for VpnGatewayStatusVpnConnection
impl Clone for VpnGatewayStatusVpnConnection
Source§fn clone(&self) -> VpnGatewayStatusVpnConnection
fn clone(&self) -> VpnGatewayStatusVpnConnection
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 VpnGatewayStatusVpnConnection
impl Default for VpnGatewayStatusVpnConnection
Source§fn default() -> VpnGatewayStatusVpnConnection
fn default() -> VpnGatewayStatusVpnConnection
impl StructuralPartialEq for VpnGatewayStatusVpnConnection
Auto Trait Implementations§
impl Freeze for VpnGatewayStatusVpnConnection
impl RefUnwindSafe for VpnGatewayStatusVpnConnection
impl Send for VpnGatewayStatusVpnConnection
impl Sync for VpnGatewayStatusVpnConnection
impl Unpin for VpnGatewayStatusVpnConnection
impl UnsafeUnpin for VpnGatewayStatusVpnConnection
impl UnwindSafe for VpnGatewayStatusVpnConnection
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