pub struct Session {
pub id: String,
pub data: HashMap<String, String>,
pub created_at: u64,
pub expires_at: u64,
}Expand description
A single session containing key-value pairs.
Fields§
§id: String§data: HashMap<String, String>§created_at: u64§expires_at: u64Implementations§
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