pub struct RetentionPolicy {
pub enabled: bool,
pub days: Option<i64>,
pub allow_permanent_delete: Option<bool>,
}
Expand description
the retention policy which determines how long the associated data should persist
Fields§
§enabled: bool
Indicates whether a retention policy is enabled for the storage service
days: Option<i64>
Indicates the number of days that metrics or logging or soft-deleted data should be retained. All data older than this value will be deleted
allow_permanent_delete: Option<bool>
Indicates whether permanent delete is allowed on this storage account.
Implementations§
Trait Implementations§
source§impl Clone for RetentionPolicy
impl Clone for RetentionPolicy
source§fn clone(&self) -> RetentionPolicy
fn clone(&self) -> RetentionPolicy
Returns a copy 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 RetentionPolicy
impl Debug for RetentionPolicy
source§impl<'de> Deserialize<'de> for RetentionPolicy
impl<'de> Deserialize<'de> for RetentionPolicy
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
source§impl PartialEq for RetentionPolicy
impl PartialEq for RetentionPolicy
source§impl Serialize for RetentionPolicy
impl Serialize for RetentionPolicy
impl StructuralPartialEq for RetentionPolicy
Auto Trait Implementations§
impl Freeze for RetentionPolicy
impl RefUnwindSafe for RetentionPolicy
impl Send for RetentionPolicy
impl Sync for RetentionPolicy
impl Unpin for RetentionPolicy
impl UnwindSafe for RetentionPolicy
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)