#[non_exhaustive]pub struct ContentDeletionProtectionChangePolicyDetails {
pub new_value: ContentDeletionProtectionPolicy,
pub new_threshold_bytes: Option<u64>,
pub previous_value: Option<ContentDeletionProtectionPolicy>,
pub previous_threshold_bytes: Option<u64>,
}Available on crate feature
dbx_team_log only.Expand description
Changed content deletion protection policy for team.
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.new_value: ContentDeletionProtectionPolicyNew content deletion protection policy.
new_threshold_bytes: Option<u64>New threshold value in bytes (only present when new policy is on_above_threshold).
previous_value: Option<ContentDeletionProtectionPolicy>Previous content deletion protection policy. Might be missing due to historical data gap.
previous_threshold_bytes: Option<u64>Previous threshold value in bytes (only present when previous policy was on_above_threshold).
Implementations§
Source§impl ContentDeletionProtectionChangePolicyDetails
impl ContentDeletionProtectionChangePolicyDetails
pub fn new(new_value: ContentDeletionProtectionPolicy) -> Self
pub fn with_new_threshold_bytes(self, value: u64) -> Self
pub fn with_previous_value(self, value: ContentDeletionProtectionPolicy) -> Self
pub fn with_previous_threshold_bytes(self, value: u64) -> Self
Trait Implementations§
Source§impl Clone for ContentDeletionProtectionChangePolicyDetails
impl Clone for ContentDeletionProtectionChangePolicyDetails
Source§fn clone(&self) -> ContentDeletionProtectionChangePolicyDetails
fn clone(&self) -> ContentDeletionProtectionChangePolicyDetails
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for ContentDeletionProtectionChangePolicyDetails
impl<'de> Deserialize<'de> for ContentDeletionProtectionChangePolicyDetails
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ContentDeletionProtectionChangePolicyDetails
impl StructuralPartialEq for ContentDeletionProtectionChangePolicyDetails
Auto Trait Implementations§
impl Freeze for ContentDeletionProtectionChangePolicyDetails
impl RefUnwindSafe for ContentDeletionProtectionChangePolicyDetails
impl Send for ContentDeletionProtectionChangePolicyDetails
impl Sync for ContentDeletionProtectionChangePolicyDetails
impl Unpin for ContentDeletionProtectionChangePolicyDetails
impl UnsafeUnpin for ContentDeletionProtectionChangePolicyDetails
impl UnwindSafe for ContentDeletionProtectionChangePolicyDetails
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.