Struct lightspeed_core::service::auth::Auth
source · pub struct Auth<Id: MaybeWeb> {
pub id: Id,
pub username: String,
pub session_id: String,
pub roles: Vec<String>,
pub creation_ts_seconds: i64,
pub expiration_ts_seconds: i64,
}
Fields§
§id: Id
§username: String
§session_id: String
§roles: Vec<String>
§creation_ts_seconds: i64
§expiration_ts_seconds: i64
Implementations§
Trait Implementations§
source§impl<'de, Id> Deserialize<'de> for Auth<Id>where
Id: Deserialize<'de> + MaybeWeb,
impl<'de, Id> Deserialize<'de> for Auth<Id>where
Id: Deserialize<'de> + MaybeWeb,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<Id> Freeze for Auth<Id>where
Id: Freeze,
impl<Id> RefUnwindSafe for Auth<Id>where
Id: RefUnwindSafe,
impl<Id> Send for Auth<Id>
impl<Id> Sync for Auth<Id>
impl<Id> Unpin for Auth<Id>where
Id: Unpin,
impl<Id> UnwindSafe for Auth<Id>where
Id: UnwindSafe,
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