#[non_exhaustive]pub struct Backup {Show 15 fields
pub name: String,
pub create_time: Option<Timestamp>,
pub instance: String,
pub instance_uid: String,
pub total_size_bytes: i64,
pub expire_time: Option<Timestamp>,
pub engine_version: String,
pub backup_files: Vec<BackupFile>,
pub node_type: NodeType,
pub replica_count: i32,
pub shard_count: i32,
pub backup_type: BackupType,
pub state: State,
pub encryption_info: Option<EncryptionInfo>,
pub uid: String,
/* private fields */
}Expand description
Backup of an instance.
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: StringIdentifier. Full resource path of the backup. the last part of the name is the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Instance UID] OR customer specified while backup instance. Example: 20240515123000_1234
create_time: Option<Timestamp>Output only. The time when the backup was created.
instance: StringOutput only. Instance resource path of this backup.
instance_uid: StringOutput only. Instance uid of this backup.
total_size_bytes: i64Output only. Total size of the backup in bytes.
expire_time: Option<Timestamp>Output only. The time when the backup will expire.
engine_version: StringOutput only. valkey-7.5/valkey-8.0, etc.
backup_files: Vec<BackupFile>Output only. List of backup files of the backup.
node_type: NodeTypeOutput only. Node type of the instance.
replica_count: i32Output only. Number of replicas for the instance.
shard_count: i32Output only. Number of shards for the instance.
backup_type: BackupTypeOutput only. Type of the backup.
state: StateOutput only. State of the backup.
encryption_info: Option<EncryptionInfo>Output only. Encryption information of the backup.
uid: StringOutput only. System assigned unique identifier of the backup.
Implementations§
Source§impl Backup
impl Backup
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
use wkt::Timestamp;
let x = Backup::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
use wkt::Timestamp;
let x = Backup::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = Backup::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_instance<T: Into<String>>(self, v: T) -> Self
pub fn set_instance<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_instance_uid<T: Into<String>>(self, v: T) -> Self
pub fn set_instance_uid<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_total_size_bytes<T: Into<i64>>(self, v: T) -> Self
pub fn set_total_size_bytes<T: Into<i64>>(self, v: T) -> Self
Sourcepub fn set_expire_time<T>(self, v: T) -> Self
pub fn set_expire_time<T>(self, v: T) -> Self
Sets the value of expire_time.
§Example
use wkt::Timestamp;
let x = Backup::new().set_expire_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_expire_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_expire_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of expire_time.
§Example
use wkt::Timestamp;
let x = Backup::new().set_or_clear_expire_time(Some(Timestamp::default()/* use setters */));
let x = Backup::new().set_or_clear_expire_time(None::<Timestamp>);Sourcepub fn set_engine_version<T: Into<String>>(self, v: T) -> Self
pub fn set_engine_version<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_backup_files<T, V>(self, v: T) -> Self
pub fn set_backup_files<T, V>(self, v: T) -> Self
Sets the value of backup_files.
§Example
use google_cloud_memorystore_v1::model::BackupFile;
let x = Backup::new()
.set_backup_files([
BackupFile::default()/* use setters */,
BackupFile::default()/* use (different) setters */,
]);Sourcepub fn set_node_type<T: Into<NodeType>>(self, v: T) -> Self
pub fn set_node_type<T: Into<NodeType>>(self, v: T) -> Self
Sourcepub fn set_replica_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_replica_count<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_shard_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_shard_count<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_backup_type<T: Into<BackupType>>(self, v: T) -> Self
pub fn set_backup_type<T: Into<BackupType>>(self, v: T) -> Self
Sets the value of backup_type.
§Example
use google_cloud_memorystore_v1::model::backup::BackupType;
let x0 = Backup::new().set_backup_type(BackupType::OnDemand);
let x1 = Backup::new().set_backup_type(BackupType::Automated);Sourcepub fn set_encryption_info<T>(self, v: T) -> Selfwhere
T: Into<EncryptionInfo>,
pub fn set_encryption_info<T>(self, v: T) -> Selfwhere
T: Into<EncryptionInfo>,
Sets the value of encryption_info.
§Example
use google_cloud_memorystore_v1::model::EncryptionInfo;
let x = Backup::new().set_encryption_info(EncryptionInfo::default()/* use setters */);Sourcepub fn set_or_clear_encryption_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<EncryptionInfo>,
pub fn set_or_clear_encryption_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<EncryptionInfo>,
Sets or clears the value of encryption_info.
§Example
use google_cloud_memorystore_v1::model::EncryptionInfo;
let x = Backup::new().set_or_clear_encryption_info(Some(EncryptionInfo::default()/* use setters */));
let x = Backup::new().set_or_clear_encryption_info(None::<EncryptionInfo>);Trait Implementations§
impl StructuralPartialEq for Backup
Auto Trait Implementations§
impl Freeze for Backup
impl RefUnwindSafe for Backup
impl Send for Backup
impl Sync for Backup
impl Unpin for Backup
impl UnsafeUnpin for Backup
impl UnwindSafe for Backup
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