#[non_exhaustive]pub struct CreateBackupMetadata {
pub name: String,
pub source_table: String,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
/* private fields */
}Expand description
Metadata type for the operation returned by CreateBackup.
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.name: StringThe name of the backup being created.
source_table: StringThe name of the table the backup is created from.
start_time: Option<Timestamp>The time at which this operation started.
end_time: Option<Timestamp>If set, the time at which this operation finished or was cancelled.
Implementations§
Source§impl CreateBackupMetadata
impl CreateBackupMetadata
pub fn new() -> 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
Sets the value of source_table.
§Example
ⓘ
let x = CreateBackupMetadata::new().set_source_table("example");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 = CreateBackupMetadata::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 = CreateBackupMetadata::new().set_or_clear_start_time(Some(Timestamp::default()/* use setters */));
let x = CreateBackupMetadata::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
Trait Implementations§
Source§impl Clone for CreateBackupMetadata
impl Clone for CreateBackupMetadata
Source§fn clone(&self) -> CreateBackupMetadata
fn clone(&self) -> CreateBackupMetadata
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 CreateBackupMetadata
impl Debug for CreateBackupMetadata
Source§impl Default for CreateBackupMetadata
impl Default for CreateBackupMetadata
Source§fn default() -> CreateBackupMetadata
fn default() -> CreateBackupMetadata
Returns the “default value” for a type. Read more
Source§impl Message for CreateBackupMetadata
impl Message for CreateBackupMetadata
Source§impl PartialEq for CreateBackupMetadata
impl PartialEq for CreateBackupMetadata
impl StructuralPartialEq for CreateBackupMetadata
Auto Trait Implementations§
impl Freeze for CreateBackupMetadata
impl RefUnwindSafe for CreateBackupMetadata
impl Send for CreateBackupMetadata
impl Sync for CreateBackupMetadata
impl Unpin for CreateBackupMetadata
impl UnwindSafe for CreateBackupMetadata
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