pub struct SuperadminIdentity {
pub id: i64,
pub kind: AgentKind,
pub value: String,
pub added_at: i64,
pub added_by: String,
}Expand description
One identity in the table.
Fields§
§id: i64§kind: AgentKindtailnet (a login or tag:name) or access (an email, or a
service token’s client id).
value: String§added_at: i64§added_by: StringWho added it (the CLI’s audit name, local(uid N)).
Implementations§
Source§impl SuperadminIdentity
impl SuperadminIdentity
Sourcepub fn admits_tailnet(&self, login: &str, tags: &[String]) -> bool
pub fn admits_tailnet(&self, login: &str, tags: &[String]) -> bool
A tailnet identity: whether it admits this login (an untagged node) or one of these tags (a tagged node, which never matches by login).
Trait Implementations§
Source§impl Clone for SuperadminIdentity
impl Clone for SuperadminIdentity
Source§impl Debug for SuperadminIdentity
impl Debug for SuperadminIdentity
impl Eq for SuperadminIdentity
Source§impl PartialEq for SuperadminIdentity
impl PartialEq for SuperadminIdentity
Source§impl Serialize for SuperadminIdentity
impl Serialize for SuperadminIdentity
impl StructuralPartialEq for SuperadminIdentity
Auto Trait Implementations§
impl Freeze for SuperadminIdentity
impl RefUnwindSafe for SuperadminIdentity
impl Send for SuperadminIdentity
impl Sync for SuperadminIdentity
impl Unpin for SuperadminIdentity
impl UnsafeUnpin for SuperadminIdentity
impl UnwindSafe for SuperadminIdentity
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.