[][src]Struct ironoxide::policy::PolicyGrant

pub struct PolicyGrant { /* fields omitted */ }

Document access granted by a policy. For use with DocumentOps.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.


impl PolicyGrant[src]

pub fn new(
    category: Option<Category>,
    sensitivity: Option<Sensitivity>,
    data_subject: Option<DataSubject>,
    substitute_user: Option<UserId>
) -> PolicyGrant

pub fn category(&self) -> Option<&Category>[src]

pub fn sensitivity(&self) -> Option<&Sensitivity>[src]

pub fn data_subject(&self) -> Option<&DataSubject>[src]

pub fn substitute_user(&self) -> Option<&UserId>[src]

Trait Implementations

impl Default for PolicyGrant[src]

impl Clone for PolicyGrant[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<PolicyGrant> for PolicyGrant[src]

impl Debug for PolicyGrant[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err