pub struct AuthProfile {
pub tn_id: TnId,
pub id_tag: Box<str>,
pub email: Option<Box<str>>,
pub roles: Option<Box<[Box<str>]>>,
pub status: Option<Box<str>>,
pub keys: Vec<AuthKey>,
}Expand description
Represents an auth profile.
Adapter-internal: not serialized to clients (handlers project this into
separate wire types). The Serialize/Deserialize derives are kept for
adapter ergonomics only, so adding tn_id does not change any wire shape.
Fields§
§tn_id: TnId§id_tag: Box<str>§email: Option<Box<str>>§roles: Option<Box<[Box<str>]>>§status: Option<Box<str>>Tenant status — typically 'A' (Active) or 'S' (Suspended).
keys: Vec<AuthKey>Trait Implementations§
Source§impl Debug for AuthProfile
impl Debug for AuthProfile
Source§impl<'de> Deserialize<'de> for AuthProfile
impl<'de> Deserialize<'de> for AuthProfile
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
Auto Trait Implementations§
impl Freeze for AuthProfile
impl RefUnwindSafe for AuthProfile
impl Send for AuthProfile
impl Sync for AuthProfile
impl Unpin for AuthProfile
impl UnsafeUnpin for AuthProfile
impl UnwindSafe for AuthProfile
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