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
sourceimpl 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
sourceimpl Clone for PolicyGrant
impl Clone for PolicyGrant
sourcefn clone(&self) -> PolicyGrant
fn clone(&self) -> PolicyGrant
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PolicyGrant
impl Debug for PolicyGrant
sourceimpl Default for PolicyGrant
impl Default for PolicyGrant
sourcefn default() -> PolicyGrant
fn default() -> PolicyGrant
Returns the “default value” for a type. Read more
sourceimpl Hash for PolicyGrant
impl Hash for PolicyGrant
sourceimpl PartialEq<PolicyGrant> for PolicyGrant
impl PartialEq<PolicyGrant> for PolicyGrant
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &PolicyGrant) -> bool
fn ne(&self, other: &PolicyGrant) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
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,
fn clear(&mut self)
fn clear(&mut self)
Completely overwrites this value.
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
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,
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more