Struct ironoxide::policy::PolicyGrant [−][src]
pub struct PolicyGrant { /* fields omitted */ }
Expand description
Document access granted by a policy.
For use with document_encrypt.
The triple (category
, sensitivity
, data_subject
) maps to a single policy rule. Each policy
rule may generate any number of users/groups.
substitute_user
replaces %USER%
in a matched policy rule.
Implementations
pub fn new(
category: Option<Category>,
sensitivity: Option<Sensitivity>,
data_subject: Option<DataSubject>,
substitute_user: Option<UserId>
) -> PolicyGrant
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PolicyGrant
impl Send for PolicyGrant
impl Sync for PolicyGrant
impl Unpin for PolicyGrant
impl UnwindSafe for PolicyGrant
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
pub fn clear(&mut self)
pub fn clear(&mut self)
Completely overwrites this value.
Compare self to key
and return true
if they are equal.
impl<T> InitializableFromZeroed for T where
T: Default,
impl<T> InitializableFromZeroed for T where
T: Default,
pub unsafe fn initialize(place: *mut T)
pub unsafe fn initialize(place: *mut T)
Called to initialize a place to a valid value, after it is set to all-bits-zero. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V