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. Since P3-20 a
server’s ids are UUIDs (local:<uuid> today), and one that served
local:<number> before changes it 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 (P2-09).
locked: boolThe session needs the user’s PIN on this connection before anything
but WhoAmI and UnlockProfile (P2-08).
pin: Option<PinState>The user’s PIN, if they have one (P2-08): 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 (P7-04, P7-09),
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 (P7-06), whose identity is its user_id.