#[non_exhaustive]pub struct BackupFile {
pub file_name: String,
pub size_bytes: i64,
pub create_time: Option<Timestamp>,
/* private fields */
}Expand description
Backup is consisted of multiple backup files.
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.file_name: StringOutput only. e.g: <shard-id>.rdb
size_bytes: i64Output only. Size of the backup file in bytes.
create_time: Option<Timestamp>Output only. The time when the backup file was created.
Implementations§
Source§impl BackupFile
impl BackupFile
pub fn new() -> Self
Sourcepub fn set_file_name<T: Into<String>>(self, v: T) -> Self
pub fn set_file_name<T: Into<String>>(self, v: T) -> Self
Sets the value of file_name.
Sourcepub fn set_size_bytes<T: Into<i64>>(self, v: T) -> Self
pub fn set_size_bytes<T: Into<i64>>(self, v: T) -> Self
Sets the value of size_bytes.
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.
Trait Implementations§
Source§impl Clone for BackupFile
impl Clone for BackupFile
Source§fn clone(&self) -> BackupFile
fn clone(&self) -> BackupFile
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 BackupFile
impl Debug for BackupFile
Source§impl Default for BackupFile
impl Default for BackupFile
Source§fn default() -> BackupFile
fn default() -> BackupFile
Returns the “default value” for a type. Read more
Source§impl PartialEq for BackupFile
impl PartialEq for BackupFile
impl StructuralPartialEq for BackupFile
Auto Trait Implementations§
impl Freeze for BackupFile
impl RefUnwindSafe for BackupFile
impl Send for BackupFile
impl Sync for BackupFile
impl Unpin for BackupFile
impl UnwindSafe for BackupFile
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