pub struct AuthenticatedSession {
pub uuid: Option<Uuid>,
pub current: bool,
pub user_agent: Box<AuthenticatedSessionUserAgent>,
pub geo_ip: Option<Box<AuthenticatedSessionGeoIp>>,
pub asn: Option<Box<AuthenticatedSessionAsn>>,
pub user: i32,
pub last_ip: String,
pub last_user_agent: Option<String>,
pub last_used: String,
pub expires: Option<String>,
}
Expand description
AuthenticatedSession : AuthenticatedSession Serializer
Fields§
§uuid: Option<Uuid>
§current: bool
Check if session is currently active session
user_agent: Box<AuthenticatedSessionUserAgent>
§geo_ip: Option<Box<AuthenticatedSessionGeoIp>>
§asn: Option<Box<AuthenticatedSessionAsn>>
§user: i32
§last_ip: String
§last_user_agent: Option<String>
§last_used: String
§expires: Option<String>
Implementations§
Source§impl AuthenticatedSession
impl AuthenticatedSession
Sourcepub fn new(
current: bool,
user_agent: AuthenticatedSessionUserAgent,
geo_ip: Option<AuthenticatedSessionGeoIp>,
asn: Option<AuthenticatedSessionAsn>,
user: i32,
last_ip: String,
last_used: String,
) -> AuthenticatedSession
pub fn new( current: bool, user_agent: AuthenticatedSessionUserAgent, geo_ip: Option<AuthenticatedSessionGeoIp>, asn: Option<AuthenticatedSessionAsn>, user: i32, last_ip: String, last_used: String, ) -> AuthenticatedSession
AuthenticatedSession Serializer
Trait Implementations§
Source§impl Clone for AuthenticatedSession
impl Clone for AuthenticatedSession
Source§fn clone(&self) -> AuthenticatedSession
fn clone(&self) -> AuthenticatedSession
Returns a duplicate of the value. Read more
1.0.0 · 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 AuthenticatedSession
impl Debug for AuthenticatedSession
Source§impl Default for AuthenticatedSession
impl Default for AuthenticatedSession
Source§fn default() -> AuthenticatedSession
fn default() -> AuthenticatedSession
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuthenticatedSession
impl<'de> Deserialize<'de> for AuthenticatedSession
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 AuthenticatedSession
impl PartialEq for AuthenticatedSession
Source§impl Serialize for AuthenticatedSession
impl Serialize for AuthenticatedSession
impl StructuralPartialEq for AuthenticatedSession
Auto Trait Implementations§
impl Freeze for AuthenticatedSession
impl RefUnwindSafe for AuthenticatedSession
impl Send for AuthenticatedSession
impl Sync for AuthenticatedSession
impl Unpin for AuthenticatedSession
impl UnwindSafe for AuthenticatedSession
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