#[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
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.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
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.
§Example
ⓘ
use wkt::Timestamp;
let x = BackupInfo::new().set_start_time(Timestamp::default()/* use setters */);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.
§Example
ⓘ
use wkt::Timestamp;
let x = BackupInfo::new().set_or_clear_start_time(Some(Timestamp::default()/* use setters */));
let x = BackupInfo::new().set_or_clear_start_time(None::<Timestamp>);Sourcepub fn set_end_time<T>(self, v: T) -> Self
pub fn set_end_time<T>(self, v: T) -> Self
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
Sourcepub fn set_source_table<T: Into<String>>(self, v: T) -> Self
pub fn set_source_table<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_source_backup<T: Into<String>>(self, v: T) -> Self
pub fn set_source_backup<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for BackupInfo
impl Clone for BackupInfo
Source§fn clone(&self) -> BackupInfo
fn clone(&self) -> BackupInfo
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 BackupInfo
impl Debug for BackupInfo
Source§impl Default for BackupInfo
impl Default for BackupInfo
Source§fn default() -> BackupInfo
fn default() -> BackupInfo
Returns the “default value” for a type. Read more
Source§impl PartialEq for BackupInfo
impl PartialEq for BackupInfo
impl StructuralPartialEq for BackupInfo
Auto Trait Implementations§
impl Freeze for BackupInfo
impl RefUnwindSafe for BackupInfo
impl Send for BackupInfo
impl Sync for BackupInfo
impl Unpin for BackupInfo
impl UnwindSafe for BackupInfo
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