pub struct ChangeQuorumRequest {
pub etag: Option<String>,
pub name: Option<String>,
pub quorum_type: Option<QuorumType>,
}
Expand description
The request for ChangeQuorum.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
Fields§
§etag: Option<String>
Optional. The etag is the hash of the QuorumInfo. The ChangeQuorum operation will only be performed if the etag matches that of the QuorumInfo in the current database resource. Otherwise the API will return an ABORTED
error. The etag is used for optimistic concurrency control as a way to help prevent simultaneous change quorum requests that could create a race condition.
name: Option<String>
Required. Name of the database in which to apply the ChangeQuorum. Values are of the form projects//instances//databases/
.
quorum_type: Option<QuorumType>
Required. The type of this Quorum.
Trait Implementations§
Source§impl Clone for ChangeQuorumRequest
impl Clone for ChangeQuorumRequest
Source§fn clone(&self) -> ChangeQuorumRequest
fn clone(&self) -> ChangeQuorumRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ChangeQuorumRequest
impl Debug for ChangeQuorumRequest
Source§impl Default for ChangeQuorumRequest
impl Default for ChangeQuorumRequest
Source§fn default() -> ChangeQuorumRequest
fn default() -> ChangeQuorumRequest
Source§impl<'de> Deserialize<'de> for ChangeQuorumRequest
impl<'de> Deserialize<'de> for ChangeQuorumRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for ChangeQuorumRequest
impl Serialize for ChangeQuorumRequest
impl RequestValue for ChangeQuorumRequest
Auto Trait Implementations§
impl Freeze for ChangeQuorumRequest
impl RefUnwindSafe for ChangeQuorumRequest
impl Send for ChangeQuorumRequest
impl Sync for ChangeQuorumRequest
impl Unpin for ChangeQuorumRequest
impl UnwindSafe for ChangeQuorumRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more