pub enum BatchPermissionOption {
GrantOnce,
GrantSession,
GrantAllSimilar,
Deny,
}Expand description
Options available for batch permission decisions
Variants§
GrantOnce
Grant permission for these requests only (no persistent grant)
GrantSession
Grant permission for the remainder of the session (these specific resources)
GrantAllSimilar
Grant permission for ALL operations of this type for the session (only shown for homogeneous read/write batches)
Deny
Deny all permission requests
Implementations§
Source§impl BatchPermissionOption
impl BatchPermissionOption
Sourcepub fn description(
&self,
count: usize,
batch_type: Option<PermissionLevel>,
) -> String
pub fn description( &self, count: usize, batch_type: Option<PermissionLevel>, ) -> String
Get the description for this option based on batch context
Sourcepub fn is_positive(&self) -> bool
pub fn is_positive(&self) -> bool
Returns true if this is a positive (grant) option
Trait Implementations§
Source§impl Clone for BatchPermissionOption
impl Clone for BatchPermissionOption
Source§fn clone(&self) -> BatchPermissionOption
fn clone(&self) -> BatchPermissionOption
Returns a duplicate 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 BatchPermissionOption
impl Debug for BatchPermissionOption
Source§impl PartialEq for BatchPermissionOption
impl PartialEq for BatchPermissionOption
impl Copy for BatchPermissionOption
impl Eq for BatchPermissionOption
impl StructuralPartialEq for BatchPermissionOption
Auto Trait Implementations§
impl Freeze for BatchPermissionOption
impl RefUnwindSafe for BatchPermissionOption
impl Send for BatchPermissionOption
impl Sync for BatchPermissionOption
impl Unpin for BatchPermissionOption
impl UnwindSafe for BatchPermissionOption
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more