[][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.

Methods

impl PolicyGrant[src]

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

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>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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