#[non_exhaustive]pub struct RestoreVolumeSnapshotRequest {
pub volume_snapshot: String,
/* private fields */
}Expand description
Message for restoring a volume snapshot.
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.volume_snapshot: StringRequired. Name of the snapshot which will be used to restore its parent volume.
Implementations§
Source§impl RestoreVolumeSnapshotRequest
impl RestoreVolumeSnapshotRequest
pub fn new() -> Self
Sourcepub fn set_volume_snapshot<T: Into<String>>(self, v: T) -> Self
pub fn set_volume_snapshot<T: Into<String>>(self, v: T) -> Self
Sets the value of volume_snapshot.
§Example
ⓘ
let x = RestoreVolumeSnapshotRequest::new().set_volume_snapshot("example");Trait Implementations§
Source§impl Clone for RestoreVolumeSnapshotRequest
impl Clone for RestoreVolumeSnapshotRequest
Source§fn clone(&self) -> RestoreVolumeSnapshotRequest
fn clone(&self) -> RestoreVolumeSnapshotRequest
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 RestoreVolumeSnapshotRequest
impl Debug for RestoreVolumeSnapshotRequest
Source§impl Default for RestoreVolumeSnapshotRequest
impl Default for RestoreVolumeSnapshotRequest
Source§fn default() -> RestoreVolumeSnapshotRequest
fn default() -> RestoreVolumeSnapshotRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for RestoreVolumeSnapshotRequest
impl PartialEq for RestoreVolumeSnapshotRequest
Source§fn eq(&self, other: &RestoreVolumeSnapshotRequest) -> bool
fn eq(&self, other: &RestoreVolumeSnapshotRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RestoreVolumeSnapshotRequest
Auto Trait Implementations§
impl Freeze for RestoreVolumeSnapshotRequest
impl RefUnwindSafe for RestoreVolumeSnapshotRequest
impl Send for RestoreVolumeSnapshotRequest
impl Sync for RestoreVolumeSnapshotRequest
impl Unpin for RestoreVolumeSnapshotRequest
impl UnwindSafe for RestoreVolumeSnapshotRequest
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