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) -> Self
pub fn from_permissions(perms: &str) -> Self
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 · 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<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
Source§impl Hash for IdentityScope
impl Hash for IdentityScope
Source§impl PartialEq for IdentityScope
impl PartialEq for IdentityScope
Source§impl Serialize for IdentityScope
impl Serialize for IdentityScope
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