pub enum ApprovalScope {
Identity,
Scoped,
Full,
}Expand description
Controls which EvalContext fields are included in the approval request hash.
Variants§
Identity
Hash: issuer + subject + capabilities (approve the agent for the action).
Scoped
Hash: issuer + subject + capabilities + repo + environment.
Full
Hash: all context fields (approve the exact request).
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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ApprovalScope
Source§impl PartialEq for ApprovalScope
impl PartialEq for ApprovalScope
Source§fn eq(&self, other: &ApprovalScope) -> bool
fn eq(&self, other: &ApprovalScope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ApprovalScope
impl Serialize for ApprovalScope
impl StructuralPartialEq for ApprovalScope
Auto Trait Implementations§
impl Freeze 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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§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.