pub struct Session {
pub token: Zeroizing<String>,
pub nick: String,
pub cred_ref: String,
pub user_id: Option<String>,
pub device_id: Option<String>,
}Expand description
A live session. The token is a secret: it is zeroized on drop and hidden from Debug.
Fields§
§token: Zeroizing<String>§nick: String§cred_ref: StringStable credential reference of the identity (its key id).
user_id: Option<String>Matrix tier only.
device_id: Option<String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
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