#[non_exhaustive]pub struct NetworkPeeringConnectionStatusConsensusState {
pub delete_status: Option<DeleteStatus>,
pub update_status: Option<UpdateStatus>,
/* private fields */
}Available on crate feature
networks only.Expand description
The status of update/delete for a consensus peering connection. Only set when connection_status.update_strategy isCONSENSUS or a network peering is proposing to update the strategy to CONSENSUS.
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.delete_status: Option<DeleteStatus>The status of the delete request.
update_status: Option<UpdateStatus>The status of the update request.
Implementations§
Source§impl NetworkPeeringConnectionStatusConsensusState
impl NetworkPeeringConnectionStatusConsensusState
pub fn new() -> Self
Sourcepub fn set_delete_status<T>(self, v: T) -> Selfwhere
T: Into<DeleteStatus>,
pub fn set_delete_status<T>(self, v: T) -> Selfwhere
T: Into<DeleteStatus>,
Sets the value of delete_status.
§Example
ⓘ
use google_cloud_compute_v1::model::network_peering_connection_status_consensus_state::DeleteStatus;
let x0 = NetworkPeeringConnectionStatusConsensusState::new().set_delete_status(DeleteStatus::Unspecified);
let x1 = NetworkPeeringConnectionStatusConsensusState::new().set_delete_status(DeleteStatus::LocalDeleteRequested);
let x2 = NetworkPeeringConnectionStatusConsensusState::new().set_delete_status(DeleteStatus::PeerDeleteRequested);Sourcepub fn set_or_clear_delete_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<DeleteStatus>,
pub fn set_or_clear_delete_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<DeleteStatus>,
Sets or clears the value of delete_status.
§Example
ⓘ
use google_cloud_compute_v1::model::network_peering_connection_status_consensus_state::DeleteStatus;
let x0 = NetworkPeeringConnectionStatusConsensusState::new().set_or_clear_delete_status(Some(DeleteStatus::Unspecified));
let x1 = NetworkPeeringConnectionStatusConsensusState::new().set_or_clear_delete_status(Some(DeleteStatus::LocalDeleteRequested));
let x2 = NetworkPeeringConnectionStatusConsensusState::new().set_or_clear_delete_status(Some(DeleteStatus::PeerDeleteRequested));
let x_none = NetworkPeeringConnectionStatusConsensusState::new().set_or_clear_delete_status(None::<DeleteStatus>);Sourcepub fn set_update_status<T>(self, v: T) -> Selfwhere
T: Into<UpdateStatus>,
pub fn set_update_status<T>(self, v: T) -> Selfwhere
T: Into<UpdateStatus>,
Sets the value of update_status.
§Example
ⓘ
use google_cloud_compute_v1::model::network_peering_connection_status_consensus_state::UpdateStatus;
let x0 = NetworkPeeringConnectionStatusConsensusState::new().set_update_status(UpdateStatus::PendingLocalAcknowledment);
let x1 = NetworkPeeringConnectionStatusConsensusState::new().set_update_status(UpdateStatus::PendingPeerAcknowledgement);
let x2 = NetworkPeeringConnectionStatusConsensusState::new().set_update_status(UpdateStatus::Unspecified);Sourcepub fn set_or_clear_update_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<UpdateStatus>,
pub fn set_or_clear_update_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<UpdateStatus>,
Sets or clears the value of update_status.
§Example
ⓘ
use google_cloud_compute_v1::model::network_peering_connection_status_consensus_state::UpdateStatus;
let x0 = NetworkPeeringConnectionStatusConsensusState::new().set_or_clear_update_status(Some(UpdateStatus::PendingLocalAcknowledment));
let x1 = NetworkPeeringConnectionStatusConsensusState::new().set_or_clear_update_status(Some(UpdateStatus::PendingPeerAcknowledgement));
let x2 = NetworkPeeringConnectionStatusConsensusState::new().set_or_clear_update_status(Some(UpdateStatus::Unspecified));
let x_none = NetworkPeeringConnectionStatusConsensusState::new().set_or_clear_update_status(None::<UpdateStatus>);Trait Implementations§
Source§impl Clone for NetworkPeeringConnectionStatusConsensusState
impl Clone for NetworkPeeringConnectionStatusConsensusState
Source§fn clone(&self) -> NetworkPeeringConnectionStatusConsensusState
fn clone(&self) -> NetworkPeeringConnectionStatusConsensusState
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 Default for NetworkPeeringConnectionStatusConsensusState
impl Default for NetworkPeeringConnectionStatusConsensusState
Source§fn default() -> NetworkPeeringConnectionStatusConsensusState
fn default() -> NetworkPeeringConnectionStatusConsensusState
Returns the “default value” for a type. Read more
Source§impl PartialEq for NetworkPeeringConnectionStatusConsensusState
impl PartialEq for NetworkPeeringConnectionStatusConsensusState
Source§fn eq(&self, other: &NetworkPeeringConnectionStatusConsensusState) -> bool
fn eq(&self, other: &NetworkPeeringConnectionStatusConsensusState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NetworkPeeringConnectionStatusConsensusState
Auto Trait Implementations§
impl Freeze for NetworkPeeringConnectionStatusConsensusState
impl RefUnwindSafe for NetworkPeeringConnectionStatusConsensusState
impl Send for NetworkPeeringConnectionStatusConsensusState
impl Sync for NetworkPeeringConnectionStatusConsensusState
impl Unpin for NetworkPeeringConnectionStatusConsensusState
impl UnwindSafe for NetworkPeeringConnectionStatusConsensusState
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