pub enum ApprovalScope {
Once,
Session,
}Expand description
Lifetime scope selected when approving a permission review request.
Variants§
Once
Authorizes strictly this single action and retains nothing afterward.
Session
Retains eligible capabilities or narrow local-action classes in memory for the rest of the current runtime session.
Implementations§
Trait Implementations§
Source§impl Clone for ApprovalScope
impl Clone for ApprovalScope
Source§fn clone(&self) -> ApprovalScope
fn clone(&self) -> ApprovalScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ApprovalScope
Source§impl Debug for ApprovalScope
impl Debug for ApprovalScope
Source§impl Default for ApprovalScope
impl Default for ApprovalScope
Source§fn default() -> ApprovalScope
fn default() -> ApprovalScope
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApprovalScope
impl<'de> Deserialize<'de> for ApprovalScope
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ApprovalScope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ApprovalScope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ApprovalScope
impl Display for ApprovalScope
impl Eq for ApprovalScope
Source§impl Hash for ApprovalScope
impl Hash for ApprovalScope
Source§impl Ord for ApprovalScope
impl Ord for ApprovalScope
Source§fn cmp(&self, other: &ApprovalScope) -> Ordering
fn cmp(&self, other: &ApprovalScope) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ApprovalScope
impl PartialEq for ApprovalScope
Source§impl PartialOrd for ApprovalScope
impl PartialOrd for ApprovalScope
Source§impl Serialize for ApprovalScope
impl Serialize for ApprovalScope
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ApprovalScope
Auto Trait Implementations§
impl Forget for ApprovalScope
impl Freeze for ApprovalScope
impl Move for ApprovalScope
impl RefUnwindSafe for ApprovalScope
impl Send for ApprovalScope
impl Sync for ApprovalScope
impl Unpin for ApprovalScope
impl UnsafeUnpin for ApprovalScope
impl UnwindSafe for ApprovalScope
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.