#[non_exhaustive]pub struct VolumeRetentionPolicy {
pub data_days: Option<i32>,
pub grace_days: Option<i32>,
pub fork_grace_days: Option<i32>,
pub event_log_days: Option<i32>,
}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.data_days: Option<i32>§grace_days: Option<i32>§fork_grace_days: Option<i32>§event_log_days: Option<i32>Implementations§
Source§impl VolumeRetentionPolicy
impl VolumeRetentionPolicy
Sourcepub fn with_data_days(self, value: i32) -> Self
pub fn with_data_days(self, value: i32) -> Self
Sets data_days.
Sourcepub fn with_grace_days(self, value: i32) -> Self
pub fn with_grace_days(self, value: i32) -> Self
Sets grace_days.
Sourcepub fn with_fork_grace_days(self, value: i32) -> Self
pub fn with_fork_grace_days(self, value: i32) -> Self
Sets fork_grace_days.
Sourcepub fn with_event_log_days(self, value: i32) -> Self
pub fn with_event_log_days(self, value: i32) -> Self
Sets event_log_days.
Trait Implementations§
Source§impl Clone for VolumeRetentionPolicy
impl Clone for VolumeRetentionPolicy
Source§impl Debug for VolumeRetentionPolicy
impl Debug for VolumeRetentionPolicy
Source§impl Default for VolumeRetentionPolicy
impl Default for VolumeRetentionPolicy
Source§impl<'de> Deserialize<'de> for VolumeRetentionPolicy
impl<'de> Deserialize<'de> for VolumeRetentionPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VolumeRetentionPolicy
impl RefUnwindSafe for VolumeRetentionPolicy
impl Send for VolumeRetentionPolicy
impl Sync for VolumeRetentionPolicy
impl Unpin for VolumeRetentionPolicy
impl UnsafeUnpin for VolumeRetentionPolicy
impl UnwindSafe for VolumeRetentionPolicy
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