#[non_exhaustive]pub struct RestoreInfo {
pub source_type: RestoreSourceType,
pub source_info: Option<SourceInfo>,
/* private fields */
}
Expand description
Information about the database restore.
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.source_type: RestoreSourceType
The type of the restore source.
source_info: Option<SourceInfo>
Information about the source used to restore the database.
Implementations§
Source§impl RestoreInfo
impl RestoreInfo
pub fn new() -> Self
Sourcepub fn set_source_type<T: Into<RestoreSourceType>>(self, v: T) -> Self
pub fn set_source_type<T: Into<RestoreSourceType>>(self, v: T) -> Self
Sets the value of source_type.
Sourcepub fn set_source_info<T: Into<Option<SourceInfo>>>(self, v: T) -> Self
pub fn set_source_info<T: Into<Option<SourceInfo>>>(self, v: T) -> Self
Sets the value of source_info.
Note that all the setters affecting source_info
are mutually
exclusive.
Sourcepub fn backup_info(&self) -> Option<&Box<BackupInfo>>
pub fn backup_info(&self) -> Option<&Box<BackupInfo>>
The value of source_info
if it holds a BackupInfo
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_backup_info<T: Into<Box<BackupInfo>>>(self, v: T) -> Self
pub fn set_backup_info<T: Into<Box<BackupInfo>>>(self, v: T) -> Self
Sets the value of source_info
to hold a BackupInfo
.
Note that all the setters affecting source_info
are
mutually exclusive.
Trait Implementations§
Source§impl Clone for RestoreInfo
impl Clone for RestoreInfo
Source§fn clone(&self) -> RestoreInfo
fn clone(&self) -> RestoreInfo
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 RestoreInfo
impl Debug for RestoreInfo
Source§impl Default for RestoreInfo
impl Default for RestoreInfo
Source§fn default() -> RestoreInfo
fn default() -> RestoreInfo
Returns the “default value” for a type. Read more
Source§impl Message for RestoreInfo
impl Message for RestoreInfo
Source§impl PartialEq for RestoreInfo
impl PartialEq for RestoreInfo
impl StructuralPartialEq for RestoreInfo
Auto Trait Implementations§
impl Freeze for RestoreInfo
impl RefUnwindSafe for RestoreInfo
impl Send for RestoreInfo
impl Sync for RestoreInfo
impl Unpin for RestoreInfo
impl UnwindSafe for RestoreInfo
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