pub struct Session {
pub session_id: i64,
pub user_id: i64,
pub trust_level: SessionTrust,
pub created_at: DateTime<Utc>,
pub last_seen: DateTime<Utc>,
pub expires_at: DateTime<Utc>,
pub elevated_until: Option<DateTime<Utc>>,
pub ip: Option<String>,
pub user_agent: Option<String>,
}Expand description
One session row, reconstructed from rustio_sessions. Returned
by list_active_for_user for the active-sessions UI.
Fields§
§session_id: i64§user_id: i64§trust_level: SessionTrust§created_at: DateTime<Utc>§last_seen: DateTime<Utc>§expires_at: DateTime<Utc>§elevated_until: Option<DateTime<Utc>>§ip: Option<String>§user_agent: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more