#[non_exhaustive]pub struct NetworkPeeringConnectionStatus {
pub consensus_state: Option<NetworkPeeringConnectionStatusConsensusState>,
pub traffic_configuration: Option<NetworkPeeringConnectionStatusTrafficConfiguration>,
pub update_strategy: Option<UpdateStrategy>,
/* private fields */
}networks only.Expand description
[Output Only] Describes the state of a peering connection, not just the local peering. This field provides information about the effective settings for the connection as a whole, including pending delete/update requests for CONSENSUS peerings.
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.consensus_state: Option<NetworkPeeringConnectionStatusConsensusState>The consensus state contains information about the status of update and delete for a consensus peering connection.
traffic_configuration: Option<NetworkPeeringConnectionStatusTrafficConfiguration>The active connectivity settings for the peering connection based on the settings of the network peerings.
update_strategy: Option<UpdateStrategy>The update strategy determines the update/delete semantics for this peering connection.
Implementations§
Source§impl NetworkPeeringConnectionStatus
impl NetworkPeeringConnectionStatus
Sourcepub fn set_consensus_state<T>(self, v: T) -> Selfwhere
T: Into<NetworkPeeringConnectionStatusConsensusState>,
pub fn set_consensus_state<T>(self, v: T) -> Selfwhere
T: Into<NetworkPeeringConnectionStatusConsensusState>,
Sets the value of consensus_state.
§Example
use google_cloud_compute_v1::model::NetworkPeeringConnectionStatusConsensusState;
let x = NetworkPeeringConnectionStatus::new().set_consensus_state(NetworkPeeringConnectionStatusConsensusState::default()/* use setters */);Sourcepub fn set_or_clear_consensus_state<T>(self, v: Option<T>) -> Selfwhere
T: Into<NetworkPeeringConnectionStatusConsensusState>,
pub fn set_or_clear_consensus_state<T>(self, v: Option<T>) -> Selfwhere
T: Into<NetworkPeeringConnectionStatusConsensusState>,
Sets or clears the value of consensus_state.
§Example
use google_cloud_compute_v1::model::NetworkPeeringConnectionStatusConsensusState;
let x = NetworkPeeringConnectionStatus::new().set_or_clear_consensus_state(Some(NetworkPeeringConnectionStatusConsensusState::default()/* use setters */));
let x = NetworkPeeringConnectionStatus::new().set_or_clear_consensus_state(None::<NetworkPeeringConnectionStatusConsensusState>);Sourcepub fn set_traffic_configuration<T>(self, v: T) -> Self
pub fn set_traffic_configuration<T>(self, v: T) -> Self
Sets the value of traffic_configuration.
§Example
use google_cloud_compute_v1::model::NetworkPeeringConnectionStatusTrafficConfiguration;
let x = NetworkPeeringConnectionStatus::new().set_traffic_configuration(NetworkPeeringConnectionStatusTrafficConfiguration::default()/* use setters */);Sourcepub fn set_or_clear_traffic_configuration<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_traffic_configuration<T>(self, v: Option<T>) -> Self
Sets or clears the value of traffic_configuration.
§Example
use google_cloud_compute_v1::model::NetworkPeeringConnectionStatusTrafficConfiguration;
let x = NetworkPeeringConnectionStatus::new().set_or_clear_traffic_configuration(Some(NetworkPeeringConnectionStatusTrafficConfiguration::default()/* use setters */));
let x = NetworkPeeringConnectionStatus::new().set_or_clear_traffic_configuration(None::<NetworkPeeringConnectionStatusTrafficConfiguration>);Sourcepub fn set_update_strategy<T>(self, v: T) -> Selfwhere
T: Into<UpdateStrategy>,
pub fn set_update_strategy<T>(self, v: T) -> Selfwhere
T: Into<UpdateStrategy>,
Sets the value of update_strategy.
§Example
use google_cloud_compute_v1::model::network_peering_connection_status::UpdateStrategy;
let x0 = NetworkPeeringConnectionStatus::new().set_update_strategy(UpdateStrategy::Independent);
let x1 = NetworkPeeringConnectionStatus::new().set_update_strategy(UpdateStrategy::Unspecified);Sourcepub fn set_or_clear_update_strategy<T>(self, v: Option<T>) -> Selfwhere
T: Into<UpdateStrategy>,
pub fn set_or_clear_update_strategy<T>(self, v: Option<T>) -> Selfwhere
T: Into<UpdateStrategy>,
Sets or clears the value of update_strategy.
§Example
use google_cloud_compute_v1::model::network_peering_connection_status::UpdateStrategy;
let x0 = NetworkPeeringConnectionStatus::new().set_or_clear_update_strategy(Some(UpdateStrategy::Independent));
let x1 = NetworkPeeringConnectionStatus::new().set_or_clear_update_strategy(Some(UpdateStrategy::Unspecified));
let x_none = NetworkPeeringConnectionStatus::new().set_or_clear_update_strategy(None::<UpdateStrategy>);Trait Implementations§
Source§impl Clone for NetworkPeeringConnectionStatus
impl Clone for NetworkPeeringConnectionStatus
Source§fn clone(&self) -> NetworkPeeringConnectionStatus
fn clone(&self) -> NetworkPeeringConnectionStatus
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 NetworkPeeringConnectionStatus
impl Default for NetworkPeeringConnectionStatus
Source§fn default() -> NetworkPeeringConnectionStatus
fn default() -> NetworkPeeringConnectionStatus
impl StructuralPartialEq for NetworkPeeringConnectionStatus
Auto Trait Implementations§
impl Freeze for NetworkPeeringConnectionStatus
impl RefUnwindSafe for NetworkPeeringConnectionStatus
impl Send for NetworkPeeringConnectionStatus
impl Sync for NetworkPeeringConnectionStatus
impl Unpin for NetworkPeeringConnectionStatus
impl UnsafeUnpin for NetworkPeeringConnectionStatus
impl UnwindSafe for NetworkPeeringConnectionStatus
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