#[non_exhaustive]pub struct BackupCollection {
pub name: String,
pub cluster_uid: String,
pub cluster: String,
pub kms_key: String,
pub uid: String,
/* private fields */
}
Expand description
BackupCollection of a 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.name: String
Identifier. Full resource path of the backup collection.
cluster_uid: String
Output only. The cluster uid of the backup collection.
cluster: String
Output only. The full resource path of the cluster the backup collection belongs to. Example: projects/{project}/locations/{location}/clusters/{cluster}
kms_key: String
Output only. The KMS key used to encrypt the backups under this backup collection.
uid: String
Output only. System assigned unique identifier of the backup collection.
Implementations§
Source§impl BackupCollection
impl BackupCollection
pub fn new() -> Self
Sourcepub fn set_cluster_uid<T: Into<String>>(self, v: T) -> Self
pub fn set_cluster_uid<T: Into<String>>(self, v: T) -> Self
Sets the value of cluster_uid.
Sourcepub fn set_cluster<T: Into<String>>(self, v: T) -> Self
pub fn set_cluster<T: Into<String>>(self, v: T) -> Self
Sets the value of cluster.
Sourcepub fn set_kms_key<T: Into<String>>(self, v: T) -> Self
pub fn set_kms_key<T: Into<String>>(self, v: T) -> Self
Sets the value of kms_key.
Trait Implementations§
Source§impl Clone for BackupCollection
impl Clone for BackupCollection
Source§fn clone(&self) -> BackupCollection
fn clone(&self) -> BackupCollection
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 BackupCollection
impl Debug for BackupCollection
Source§impl Default for BackupCollection
impl Default for BackupCollection
Source§fn default() -> BackupCollection
fn default() -> BackupCollection
Returns the “default value” for a type. Read more
Source§impl Message for BackupCollection
impl Message for BackupCollection
Source§impl PartialEq for BackupCollection
impl PartialEq for BackupCollection
impl StructuralPartialEq for BackupCollection
Auto Trait Implementations§
impl Freeze for BackupCollection
impl RefUnwindSafe for BackupCollection
impl Send for BackupCollection
impl Sync for BackupCollection
impl Unpin for BackupCollection
impl UnwindSafe for BackupCollection
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