#[non_exhaustive]pub struct Backup {Show 15 fields
pub name: String,
pub create_time: Option<Timestamp>,
pub cluster: String,
pub cluster_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 a cluster.
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 Cluster UID] OR customer specified while backup cluster. Example: 20240515123000_1234
create_time: Option<Timestamp>Output only. The time when the backup was created.
cluster: StringOutput only. Cluster resource path of this backup.
cluster_uid: StringOutput only. Cluster 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. redis-7.2, valkey-7.5
backup_files: Vec<BackupFile>Output only. List of backup files of the backup.
node_type: NodeTypeOutput only. Node type of the cluster.
replica_count: i32Output only. Number of replicas for the cluster.
shard_count: i32Output only. Number of shards for the cluster.
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
pub fn new() -> Self
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.
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.
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_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_total_size_bytes<T: Into<i64>>(self, v: T) -> Self
pub fn set_total_size_bytes<T: Into<i64>>(self, v: T) -> Self
Sets the value of total_size_bytes.
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.
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.
Sourcepub fn set_engine_version<T: Into<String>>(self, v: T) -> Self
pub fn set_engine_version<T: Into<String>>(self, v: T) -> Self
Sets the value of engine_version.
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.
Sourcepub fn set_node_type<T: Into<NodeType>>(self, v: T) -> Self
pub fn set_node_type<T: Into<NodeType>>(self, v: T) -> Self
Sets the value of node_type.
Sourcepub fn set_replica_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_replica_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of replica_count.
Sourcepub fn set_shard_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_shard_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of shard_count.
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.
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.
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.