pub struct AdminSession {
pub id: String,
pub user_id: String,
pub expires_at: OffsetDateTime,
pub token: String,
pub ip_address: Option<String>,
pub user_agent: Option<String>,
pub created_at: OffsetDateTime,
pub updated_at: OffsetDateTime,
pub impersonated_by: Option<String>,
}Fields§
§id: String§user_id: String§expires_at: OffsetDateTime§token: String§ip_address: Option<String>§user_agent: Option<String>§created_at: OffsetDateTime§updated_at: OffsetDateTime§impersonated_by: Option<String>Trait Implementations§
Source§impl Clone for AdminSession
impl Clone for AdminSession
Source§fn clone(&self) -> AdminSession
fn clone(&self) -> AdminSession
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 AdminSession
impl Debug for AdminSession
Source§impl<'de> Deserialize<'de> for AdminSession
impl<'de> Deserialize<'de> for AdminSession
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
Source§impl PartialEq for AdminSession
impl PartialEq for AdminSession
Source§fn eq(&self, other: &AdminSession) -> bool
fn eq(&self, other: &AdminSession) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AdminSession
impl Serialize for AdminSession
impl Eq for AdminSession
impl StructuralPartialEq for AdminSession
Auto Trait Implementations§
impl Freeze for AdminSession
impl RefUnwindSafe for AdminSession
impl Send for AdminSession
impl Sync for AdminSession
impl Unpin for AdminSession
impl UnsafeUnpin for AdminSession
impl UnwindSafe for AdminSession
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.