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.
Implementations§
Source§impl UserSummary
impl UserSummary
Sourcepub fn portable_id(&self) -> Option<PortableUserId>
pub fn portable_id(&self) -> Option<PortableUserId>
The portable identity a guest’s session is (portable:<hex>);
None for an account of this server’s own.