pub struct Superadmin {
pub source: SuperadminSource,
pub principal: Principal,
}Expand description
A caller with the unix socket’s reach.
Fields§
§source: SuperadminSource§principal: PrincipalWho it acts as: the isb user its tailnet login names (with every org,
as a platform admin), or a synthetic principal (user.id 0, email the
source’s label). Its kind is PrincipalKind::Superadmin.
Implementations§
Source§impl Superadmin
impl Superadmin
Sourcepub fn synthetic(source: SuperadminSource) -> Superadmin
pub fn synthetic(source: SuperadminSource) -> Superadmin
A superadmin with no isb account of its own.
Sourcepub fn as_user(
source: SuperadminSource,
user: User,
store: &AuthStore,
) -> AuthResult<Self>
pub fn as_user( source: SuperadminSource, user: User, store: &AuthStore, ) -> AuthResult<Self>
Acting as user (enabled), with its memberships.
Sourcepub fn has_account(&self) -> bool
pub fn has_account(&self) -> bool
Has an isb account (sessions, passkeys, tokens of its own).
pub fn label(&self) -> String
Trait Implementations§
Source§impl Clone for Superadmin
impl Clone for Superadmin
Source§impl Debug for Superadmin
impl Debug for Superadmin
impl Eq for Superadmin
Source§impl PartialEq for Superadmin
impl PartialEq for Superadmin
impl StructuralPartialEq for Superadmin
Auto Trait Implementations§
impl Freeze for Superadmin
impl RefUnwindSafe for Superadmin
impl Send for Superadmin
impl Sync for Superadmin
impl Unpin for Superadmin
impl UnsafeUnpin for Superadmin
impl UnwindSafe for Superadmin
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> 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.