#[non_exhaustive]pub struct BackupInfo {
pub backup: String,
pub version_time: Option<Timestamp>,
pub create_time: Option<Timestamp>,
pub source_database: 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: StringName of the backup.
version_time: Option<Timestamp>The backup contains an externally consistent copy of source_database at
the timestamp specified by version_time. If the
CreateBackup
request did not specify version_time, the version_time of the backup is
equivalent to the create_time.
create_time: Option<Timestamp>The time the CreateBackup request was received.
source_database: StringName of the database the backup was created from.
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_version_time<T>(self, v: T) -> Self
pub fn set_version_time<T>(self, v: T) -> Self
Sets the value of version_time.
Sourcepub fn set_or_clear_version_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_version_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of version_time.
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_source_database<T: Into<String>>(self, v: T) -> Self
pub fn set_source_database<T: Into<String>>(self, v: T) -> Self
Sets the value of source_database.
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