pub struct AdminSessionResponse {
pub session_id: AdminSessionId,
pub user_id: UserId,
pub provider: HumanLoginProvider,
pub roles: Vec<UserRole>,
pub scopes: Vec<AdminScope>,
pub fresh_until: OffsetDateTime,
pub expires_at: OffsetDateTime,
}Expand description
Public metadata for one newly created or currently authenticated session.
Fields§
§session_id: AdminSessionId§user_id: UserId§provider: HumanLoginProvider§roles: Vec<UserRole>§scopes: Vec<AdminScope>§fresh_until: OffsetDateTime§expires_at: OffsetDateTimeTrait Implementations§
Source§impl Clone for AdminSessionResponse
impl Clone for AdminSessionResponse
Source§impl Debug for AdminSessionResponse
impl Debug for AdminSessionResponse
Source§impl<'de> Deserialize<'de> for AdminSessionResponse
impl<'de> Deserialize<'de> for AdminSessionResponse
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
impl Eq for AdminSessionResponse
Source§impl PartialEq for AdminSessionResponse
impl PartialEq for AdminSessionResponse
Source§impl Serialize for AdminSessionResponse
impl Serialize for AdminSessionResponse
impl StructuralPartialEq for AdminSessionResponse
Auto Trait Implementations§
impl Freeze for AdminSessionResponse
impl RefUnwindSafe for AdminSessionResponse
impl Send for AdminSessionResponse
impl Sync for AdminSessionResponse
impl Unpin for AdminSessionResponse
impl UnsafeUnpin for AdminSessionResponse
impl UnwindSafe for AdminSessionResponse
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