[−][src]Struct ironoxide::policy::PolicyGrant
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]
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 Clone for PolicyGrant
[src]
fn clone(&self) -> PolicyGrant
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for PolicyGrant
[src]
impl PartialEq<PolicyGrant> for PolicyGrant
[src]
fn eq(&self, other: &PolicyGrant) -> bool
[src]
fn ne(&self, other: &PolicyGrant) -> bool
[src]
impl Debug for PolicyGrant
[src]
impl StructuralPartialEq for PolicyGrant
[src]
Auto Trait Implementations
impl Send for PolicyGrant
impl Sync for PolicyGrant
impl Unpin for PolicyGrant
impl UnwindSafe for PolicyGrant
impl RefUnwindSafe for PolicyGrant
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self)
impl<T> InitializableFromZeroed for T where
T: Default,
T: Default,
unsafe fn initialize(place: *mut T)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,