pub struct SessionIdentity {
pub session_id: String,
pub tier: BackendKind,
pub server_ref: String,
pub key_id: String,
pub public_key: String,
pub nick: Option<String>,
pub enrolled: bool,
pub local_session: Option<String>,
}Expand description
What is public and persistent about an identity. (The private seed is not in here.)
Fields§
§session_id: String§tier: BackendKind§server_ref: StringThe server this identity belongs to (normalized base URL). Part of the binding.
key_id: String§public_key: StringPublic key, base64url.
nick: Option<String>Learned when the operator’s invite is redeemed; the nick is the operator’s choice.
enrolled: bool§local_session: Option<String>The tier-1 (local mail node) session id of the same session, when known. The link is kept
here and only here; it is one-to-one (see IdentityStore::bind_local).
Implementations§
Source§impl SessionIdentity
impl SessionIdentity
Trait Implementations§
Source§impl Clone for SessionIdentity
impl Clone for SessionIdentity
Source§impl Debug for SessionIdentity
impl Debug for SessionIdentity
Source§impl<'de> Deserialize<'de> for SessionIdentity
impl<'de> Deserialize<'de> for SessionIdentity
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 SessionIdentity
Source§impl PartialEq for SessionIdentity
impl PartialEq for SessionIdentity
Source§impl Serialize for SessionIdentity
impl Serialize for SessionIdentity
impl StructuralPartialEq for SessionIdentity
Auto Trait Implementations§
impl Freeze for SessionIdentity
impl RefUnwindSafe for SessionIdentity
impl Send for SessionIdentity
impl Sync for SessionIdentity
impl Unpin for SessionIdentity
impl UnsafeUnpin for SessionIdentity
impl UnwindSafe for SessionIdentity
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