pub enum IdentityAccess {
Tenant,
User {
user_id: String,
},
Runtime {
runtime_identity_id: String,
},
}Expand description
Who may inspect Runtime Identity records inside one tenant/project.
Variants§
Tenant
Platform admin, service token, or * permission: tenant-wide.
User
Sky / human caller: identities that list this user id.
Runtime
Runtime workload: only its own identity id or related runtime ids.
Implementations§
Source§impl IdentityAccess
impl IdentityAccess
pub fn allows(&self, identity: &RuntimeIdentity) -> bool
Trait Implementations§
Source§impl Clone for IdentityAccess
impl Clone for IdentityAccess
Source§impl Debug for IdentityAccess
impl Debug for IdentityAccess
impl Eq for IdentityAccess
Source§impl PartialEq for IdentityAccess
impl PartialEq for IdentityAccess
impl StructuralPartialEq for IdentityAccess
Auto Trait Implementations§
impl Freeze for IdentityAccess
impl RefUnwindSafe for IdentityAccess
impl Send for IdentityAccess
impl Sync for IdentityAccess
impl Unpin for IdentityAccess
impl UnsafeUnpin for IdentityAccess
impl UnwindSafe for IdentityAccess
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