#[non_exhaustive]pub struct CheckConsistencyRequest {
pub name: String,
pub consistency_token: String,
pub mode: Option<Mode>,
/* private fields */
}Expand description
Request message for google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency
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.name: StringRequired. The unique name of the Table for which to check replication
consistency. Values are of the form
projects/{project}/instances/{instance}/tables/{table}.
consistency_token: StringRequired. The token created using GenerateConsistencyToken for the Table.
mode: Option<Mode>Which type of read needs to consistently observe which type of write?
Default: standard_read_remote_writes
Implementations§
Source§impl CheckConsistencyRequest
impl CheckConsistencyRequest
Sourcepub fn set_consistency_token<T: Into<String>>(self, v: T) -> Self
pub fn set_consistency_token<T: Into<String>>(self, v: T) -> Self
Sets the value of consistency_token.
§Example
let x = CheckConsistencyRequest::new().set_consistency_token("example");Sourcepub fn set_mode<T: Into<Option<Mode>>>(self, v: T) -> Self
pub fn set_mode<T: Into<Option<Mode>>>(self, v: T) -> Self
Sets the value of mode.
Note that all the setters affecting mode are mutually
exclusive.
§Example
use google_cloud_bigtable_admin_v2::model::StandardReadRemoteWrites;
let x = CheckConsistencyRequest::new().set_mode(Some(
google_cloud_bigtable_admin_v2::model::check_consistency_request::Mode::StandardReadRemoteWrites(StandardReadRemoteWrites::default().into())));Sourcepub fn standard_read_remote_writes(
&self,
) -> Option<&Box<StandardReadRemoteWrites>>
pub fn standard_read_remote_writes( &self, ) -> Option<&Box<StandardReadRemoteWrites>>
The value of mode
if it holds a StandardReadRemoteWrites, None if the field is not set or
holds a different branch.
Sourcepub fn set_standard_read_remote_writes<T: Into<Box<StandardReadRemoteWrites>>>(
self,
v: T,
) -> Self
pub fn set_standard_read_remote_writes<T: Into<Box<StandardReadRemoteWrites>>>( self, v: T, ) -> Self
Sets the value of mode
to hold a StandardReadRemoteWrites.
Note that all the setters affecting mode are
mutually exclusive.
§Example
use google_cloud_bigtable_admin_v2::model::StandardReadRemoteWrites;
let x = CheckConsistencyRequest::new().set_standard_read_remote_writes(StandardReadRemoteWrites::default()/* use setters */);
assert!(x.standard_read_remote_writes().is_some());
assert!(x.data_boost_read_local_writes().is_none());Sourcepub fn data_boost_read_local_writes(
&self,
) -> Option<&Box<DataBoostReadLocalWrites>>
pub fn data_boost_read_local_writes( &self, ) -> Option<&Box<DataBoostReadLocalWrites>>
The value of mode
if it holds a DataBoostReadLocalWrites, None if the field is not set or
holds a different branch.
Sourcepub fn set_data_boost_read_local_writes<T: Into<Box<DataBoostReadLocalWrites>>>(
self,
v: T,
) -> Self
pub fn set_data_boost_read_local_writes<T: Into<Box<DataBoostReadLocalWrites>>>( self, v: T, ) -> Self
Sets the value of mode
to hold a DataBoostReadLocalWrites.
Note that all the setters affecting mode are
mutually exclusive.
§Example
use google_cloud_bigtable_admin_v2::model::DataBoostReadLocalWrites;
let x = CheckConsistencyRequest::new().set_data_boost_read_local_writes(DataBoostReadLocalWrites::default()/* use setters */);
assert!(x.data_boost_read_local_writes().is_some());
assert!(x.standard_read_remote_writes().is_none());Trait Implementations§
Source§impl Clone for CheckConsistencyRequest
impl Clone for CheckConsistencyRequest
Source§fn clone(&self) -> CheckConsistencyRequest
fn clone(&self) -> CheckConsistencyRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CheckConsistencyRequest
impl Debug for CheckConsistencyRequest
Source§impl Default for CheckConsistencyRequest
impl Default for CheckConsistencyRequest
Source§fn default() -> CheckConsistencyRequest
fn default() -> CheckConsistencyRequest
Source§impl Message for CheckConsistencyRequest
impl Message for CheckConsistencyRequest
Source§impl PartialEq for CheckConsistencyRequest
impl PartialEq for CheckConsistencyRequest
impl StructuralPartialEq for CheckConsistencyRequest
Auto Trait Implementations§
impl Freeze for CheckConsistencyRequest
impl RefUnwindSafe for CheckConsistencyRequest
impl Send for CheckConsistencyRequest
impl Sync for CheckConsistencyRequest
impl Unpin for CheckConsistencyRequest
impl UnsafeUnpin for CheckConsistencyRequest
impl UnwindSafe for CheckConsistencyRequest
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