pub enum IdentityScope {
Broad,
Constrained,
Unknown,
}Expand description
How broad is an identity’s scope? Classifies the risk surface of tokens, service principals, and OIDC identities.
Variants§
Broad
Wide permissions: write-all, admin, or unscoped tokens.
Constrained
Narrow permissions: contents:read, specific scopes.
Unknown
Scope couldn’t be determined — treat as risky.
Implementations§
Source§impl IdentityScope
impl IdentityScope
Sourcepub fn from_permissions(perms: &str) -> IdentityScope
pub fn from_permissions(perms: &str) -> IdentityScope
Classify an identity scope from a permissions string.
Trait Implementations§
Source§impl Clone for IdentityScope
impl Clone for IdentityScope
Source§fn clone(&self) -> IdentityScope
fn clone(&self) -> IdentityScope
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 moreSource§impl Debug for IdentityScope
impl Debug for IdentityScope
Source§impl<'de> Deserialize<'de> for IdentityScope
impl<'de> Deserialize<'de> for IdentityScope
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<IdentityScope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<IdentityScope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for IdentityScope
impl Hash for IdentityScope
Source§impl PartialEq for IdentityScope
impl PartialEq for IdentityScope
Source§fn eq(&self, other: &IdentityScope) -> bool
fn eq(&self, other: &IdentityScope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IdentityScope
impl Serialize for IdentityScope
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 Copy for IdentityScope
impl Eq for IdentityScope
impl StructuralPartialEq for IdentityScope
Auto Trait Implementations§
impl Freeze for IdentityScope
impl RefUnwindSafe for IdentityScope
impl Send for IdentityScope
impl Sync for IdentityScope
impl Unpin for IdentityScope
impl UnsafeUnpin for IdentityScope
impl UnwindSafe for IdentityScope
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§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.