pub struct Session {
pub id: String,
pub token: String,
pub created_at: i64,
pub expires_at: i64,
pub last_activity_at: i64,
pub user_id: String,
pub device_id: String,
pub roles: String,
pub is_oauth: bool,
pub props: StringMap,
}
Fields§
§id: String
§token: String
§created_at: i64
§expires_at: i64
§last_activity_at: i64
§user_id: String
§device_id: String
§roles: String
§is_oauth: bool
§props: StringMap
Implementations§
Source§impl Session
impl Session
pub fn id(&self) -> &str
pub fn token(&self) -> &str
pub fn created_at(&self) -> f64
pub fn expires_at(&self) -> f64
pub fn last_activity_at(&self) -> f64
pub fn user_id(&self) -> &str
pub fn device_id(&self) -> &str
pub fn roles(&self) -> &str
pub fn is_oauth(&self) -> bool
pub fn props(&self) -> &StringMap
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 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request