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§
Source§impl RetentionPolicy
impl RetentionPolicy
pub fn new(enabled: bool) -> RetentionPolicy
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<RetentionPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RetentionPolicy, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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