#[non_exhaustive]pub struct EditVolumeRequest {
pub description: Option<String>,
pub retention: Option<VolumeRetentionPolicy>,
pub versioning: Option<VolumeVersioningPolicy>,
pub compaction: Option<String>,
}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.description: Option<String>§retention: Option<VolumeRetentionPolicy>§versioning: Option<VolumeVersioningPolicy>§compaction: Option<String>Implementations§
Source§impl EditVolumeRequest
impl EditVolumeRequest
Sourcepub fn with_description(self, value: impl Into<String>) -> Self
pub fn with_description(self, value: impl Into<String>) -> Self
Sets description.
Sourcepub fn with_retention(self, value: VolumeRetentionPolicy) -> Self
pub fn with_retention(self, value: VolumeRetentionPolicy) -> Self
Sets retention.
Sourcepub fn with_versioning(self, value: VolumeVersioningPolicy) -> Self
pub fn with_versioning(self, value: VolumeVersioningPolicy) -> Self
Sets versioning.
Sourcepub fn with_compaction(self, value: impl Into<String>) -> Self
pub fn with_compaction(self, value: impl Into<String>) -> Self
Sets compaction.
Trait Implementations§
Source§impl Clone for EditVolumeRequest
impl Clone for EditVolumeRequest
Source§impl Debug for EditVolumeRequest
impl Debug for EditVolumeRequest
Source§impl Default for EditVolumeRequest
impl Default for EditVolumeRequest
Auto Trait Implementations§
impl Freeze for EditVolumeRequest
impl RefUnwindSafe for EditVolumeRequest
impl Send for EditVolumeRequest
impl Sync for EditVolumeRequest
impl Unpin for EditVolumeRequest
impl UnsafeUnpin for EditVolumeRequest
impl UnwindSafe for EditVolumeRequest
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