pub struct DataPolicy {
pub apply_labels: Vec<String>,
pub allowed_actions: Option<Vec<String>>,
pub denied_actions: Vec<String>,
pub retention: Option<RetentionPolicy>,
}Expand description
Data policy for a named data element.
Fields§
§apply_labels: Vec<String>Labels to apply.
allowed_actions: Option<Vec<String>>Allowed actions (None = all allowed).
denied_actions: Vec<String>Denied actions.
retention: Option<RetentionPolicy>Retention policy.
Trait Implementations§
Source§impl Clone for DataPolicy
impl Clone for DataPolicy
Source§fn clone(&self) -> DataPolicy
fn clone(&self) -> DataPolicy
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 Debug for DataPolicy
impl Debug for DataPolicy
Source§impl Default for DataPolicy
impl Default for DataPolicy
Source§fn default() -> DataPolicy
fn default() -> DataPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DataPolicy
impl<'de> Deserialize<'de> for DataPolicy
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 DataPolicy
impl RefUnwindSafe for DataPolicy
impl Send for DataPolicy
impl Sync for DataPolicy
impl Unpin for DataPolicy
impl UnsafeUnpin for DataPolicy
impl UnwindSafe for DataPolicy
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