pub struct UserSummary {
pub user_id: String,
pub username: String,
pub display_name: String,
pub role: Role,
pub locked: bool,
pub pin: Option<PinState>,
pub portable: Vec<PortableTie>,
}Expand description
A session’s user.
Fields§
§user_id: StringOpaque; stable for the user on this server (today local:<uuid>).
A server that served local:<number> ids changes them once: a
client that kept an id reads it again from WhoAmI.
username: String§display_name: StringWhat to show; the username when the user has no display name.
role: RoleWhat the user may do.
locked: boolThe session needs the user’s PIN on this connection before anything
but WhoAmI and UnlockProfile.
pin: Option<PinState>The user’s PIN, if they have one: for “Set · 4 digits”, and for how many boxes a PIN pad shows. Never the PIN itself.
portable: Vec<PortableTie>The portable identities the account is tied to,
the oldest tie first: shown on the account, never as other
accounts. Empty for an account with none, and for a portable
user’s own session, whose identity is its user_id.
Trait Implementations§
Source§impl Clone for UserSummary
impl Clone for UserSummary
Source§impl Debug for UserSummary
impl Debug for UserSummary
Source§impl<'de> Deserialize<'de> for UserSummary
impl<'de> Deserialize<'de> for UserSummary
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
impl Eq for UserSummary
Source§impl PartialEq for UserSummary
impl PartialEq for UserSummary
Source§impl Serialize for UserSummary
impl Serialize for UserSummary
impl StructuralPartialEq for UserSummary
Auto Trait Implementations§
impl Freeze for UserSummary
impl RefUnwindSafe for UserSummary
impl Send for UserSummary
impl Sync for UserSummary
impl Unpin for UserSummary
impl UnsafeUnpin for UserSummary
impl UnwindSafe for UserSummary
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