#[non_exhaustive]pub struct ClusterState {
pub replication_state: ReplicationState,
pub encryption_info: Vec<EncryptionInfo>,
/* private fields */
}Expand description
The state of a table’s data in a particular cluster.
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.replication_state: ReplicationStateOutput only. The state of replication for the table in this cluster.
encryption_info: Vec<EncryptionInfo>Output only. The encryption information for the table in this cluster. If the encryption key protecting this resource is customer managed, then its version can be rotated in Cloud Key Management Service (Cloud KMS). The primary version of the key and its status will be reflected here when changes propagate from Cloud KMS.
Implementations§
Source§impl ClusterState
impl ClusterState
pub fn new() -> Self
Sourcepub fn set_replication_state<T: Into<ReplicationState>>(self, v: T) -> Self
pub fn set_replication_state<T: Into<ReplicationState>>(self, v: T) -> Self
Sets the value of replication_state.
§Example
ⓘ
use google_cloud_bigtable_admin_v2::model::table::cluster_state::ReplicationState;
let x0 = ClusterState::new().set_replication_state(ReplicationState::Initializing);
let x1 = ClusterState::new().set_replication_state(ReplicationState::PlannedMaintenance);
let x2 = ClusterState::new().set_replication_state(ReplicationState::UnplannedMaintenance);Sourcepub fn set_encryption_info<T, V>(self, v: T) -> Self
pub fn set_encryption_info<T, V>(self, v: T) -> Self
Sets the value of encryption_info.
§Example
ⓘ
use google_cloud_bigtable_admin_v2::model::EncryptionInfo;
let x = ClusterState::new()
.set_encryption_info([
EncryptionInfo::default()/* use setters */,
EncryptionInfo::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for ClusterState
impl Clone for ClusterState
Source§fn clone(&self) -> ClusterState
fn clone(&self) -> ClusterState
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 Debug for ClusterState
impl Debug for ClusterState
Source§impl Default for ClusterState
impl Default for ClusterState
Source§fn default() -> ClusterState
fn default() -> ClusterState
Returns the “default value” for a type. Read more
Source§impl Message for ClusterState
impl Message for ClusterState
Source§impl PartialEq for ClusterState
impl PartialEq for ClusterState
impl StructuralPartialEq for ClusterState
Auto Trait Implementations§
impl Freeze for ClusterState
impl RefUnwindSafe for ClusterState
impl Send for ClusterState
impl Sync for ClusterState
impl Unpin for ClusterState
impl UnwindSafe for ClusterState
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