#[non_exhaustive]pub struct RestoreParameters {
pub source: Option<Source>,
/* private fields */
}Expand description
The RestoreParameters if volume is created from a snapshot or 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.source: Option<Source>The source that the volume is created from.
Implementations§
Source§impl RestoreParameters
impl RestoreParameters
pub fn new() -> Self
Sourcepub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
pub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
Sourcepub fn source_snapshot(&self) -> Option<&String>
pub fn source_snapshot(&self) -> Option<&String>
The value of source
if it holds a SourceSnapshot, None if the field is not set or
holds a different branch.
Sourcepub fn set_source_snapshot<T: Into<String>>(self, v: T) -> Self
pub fn set_source_snapshot<T: Into<String>>(self, v: T) -> Self
Sourcepub fn source_backup(&self) -> Option<&String>
pub fn source_backup(&self) -> Option<&String>
The value of source
if it holds a SourceBackup, None if the field is not set or
holds a different branch.
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 RestoreParameters
impl Clone for RestoreParameters
Source§fn clone(&self) -> RestoreParameters
fn clone(&self) -> RestoreParameters
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 RestoreParameters
impl Debug for RestoreParameters
Source§impl Default for RestoreParameters
impl Default for RestoreParameters
Source§fn default() -> RestoreParameters
fn default() -> RestoreParameters
Returns the “default value” for a type. Read more
Source§impl Message for RestoreParameters
impl Message for RestoreParameters
Source§impl PartialEq for RestoreParameters
impl PartialEq for RestoreParameters
impl StructuralPartialEq for RestoreParameters
Auto Trait Implementations§
impl Freeze for RestoreParameters
impl RefUnwindSafe for RestoreParameters
impl Send for RestoreParameters
impl Sync for RestoreParameters
impl Unpin for RestoreParameters
impl UnwindSafe for RestoreParameters
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