pub struct SessionPageKey {
pub updated_at: DateTime<Utc>,
pub session_id: SessionId,
}Expand description
Stable key identifying one session’s position in the updated-time ordering.
Fields§
§updated_at: DateTime<Utc>Last update time of the session at the page boundary.
session_id: SessionIdStable session identity used to break equal-timestamp ties.
Implementations§
Source§impl SessionPageKey
impl SessionPageKey
Sourcepub fn from_session(session: &SessionRecord) -> Self
pub fn from_session(session: &SessionRecord) -> Self
Build a key from one returned session.
Trait Implementations§
Source§impl Clone for SessionPageKey
impl Clone for SessionPageKey
Source§fn clone(&self) -> SessionPageKey
fn clone(&self) -> SessionPageKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionPageKey
impl Debug for SessionPageKey
impl Eq for SessionPageKey
Source§impl PartialEq for SessionPageKey
impl PartialEq for SessionPageKey
impl StructuralPartialEq for SessionPageKey
Auto Trait Implementations§
impl Freeze for SessionPageKey
impl RefUnwindSafe for SessionPageKey
impl Send for SessionPageKey
impl Sync for SessionPageKey
impl Unpin for SessionPageKey
impl UnsafeUnpin for SessionPageKey
impl UnwindSafe for SessionPageKey
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