Struct ironoxide::policy::PolicyGrant
source · pub struct PolicyGrant { /* private fields */ }
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§
source§impl PolicyGrant
impl PolicyGrant
pub fn new( category: Option<Category>, sensitivity: Option<Sensitivity>, data_subject: Option<DataSubject>, substitute_user: Option<UserId> ) -> PolicyGrant
pub fn category(&self) -> Option<&Category>
pub fn sensitivity(&self) -> Option<&Sensitivity>
pub fn data_subject(&self) -> Option<&DataSubject>
pub fn substitute_user(&self) -> Option<&UserId>
Trait Implementations§
source§impl Clone for PolicyGrant
impl Clone for PolicyGrant
source§fn clone(&self) -> PolicyGrant
fn clone(&self) -> PolicyGrant
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 PolicyGrant
impl Debug for PolicyGrant
source§impl Default for PolicyGrant
impl Default for PolicyGrant
source§fn default() -> PolicyGrant
fn default() -> PolicyGrant
Returns the “default value” for a type. Read more
source§impl Hash for PolicyGrant
impl Hash for PolicyGrant
source§impl PartialEq for PolicyGrant
impl PartialEq for PolicyGrant
source§fn eq(&self, other: &PolicyGrant) -> bool
fn eq(&self, other: &PolicyGrant) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PolicyGrant
impl StructuralEq for PolicyGrant
impl StructuralPartialEq for PolicyGrant
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§
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> InitializableFromZeroed for Twhere
T: Default,
impl<T> InitializableFromZeroed for Twhere T: Default,
§unsafe fn initialize(place: *mut T)
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