#[non_exhaustive]pub struct BackupInfo {
pub backup: String,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub source_table: String,
pub source_backup: String,
/* private fields */
}Expand description
Information about a backup.
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.backup: StringOutput only. Name of the backup.
start_time: Option<Timestamp>Output only. The time that the backup was started. Row data in the backup will be no older than this timestamp.
end_time: Option<Timestamp>Output only. This time that the backup was finished. Row data in the backup will be no newer than this timestamp.
source_table: StringOutput only. Name of the table the backup was created from.
source_backup: StringOutput only. Name of the backup from which this backup was copied. If a backup is not created by copying a backup, this field will be empty. Values are of the form: projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>
Implementations§
Source§impl BackupInfo
impl BackupInfo
pub fn new() -> Self
Sourcepub fn set_backup<T: Into<String>>(self, v: T) -> Self
pub fn set_backup<T: Into<String>>(self, v: T) -> Self
Sets the value of backup.
Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
Sourcepub fn set_end_time<T>(self, v: T) -> Self
pub fn set_end_time<T>(self, v: T) -> Self
Sets the value of end_time.
Sourcepub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of end_time.
Sourcepub fn set_source_table<T: Into<String>>(self, v: T) -> Self
pub fn set_source_table<T: Into<String>>(self, v: T) -> Self
Sets the value of source_table.
Sourcepub fn set_source_backup<T: Into<String>>(self, v: T) -> Self
pub fn set_source_backup<T: Into<String>>(self, v: T) -> Self
Sets the value of source_backup.
Trait Implementations§
Source§impl Clone for BackupInfo
impl Clone for BackupInfo
Source§fn clone(&self) -> BackupInfo
fn clone(&self) -> BackupInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more