pub struct NewSession {
pub id: Uuid,
pub user_id: Uuid,
pub token_hash: String,
pub ip_address: Option<String>,
pub user_agent: Option<String>,
pub expires_at: NaiveDateTime,
pub created_at: NaiveDateTime,
}Fields§
§id: Uuid§user_id: Uuid§token_hash: String§ip_address: Option<String>§user_agent: Option<String>§expires_at: NaiveDateTime§created_at: NaiveDateTimeTrait Implementations§
Source§impl Clone for NewSession
impl Clone for NewSession
Source§fn clone(&self) -> NewSession
fn clone(&self) -> NewSession
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 NewSession
impl Debug for NewSession
Source§impl<'de> Deserialize<'de> for NewSession
impl<'de> Deserialize<'de> for NewSession
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 Freeze for NewSession
impl RefUnwindSafe for NewSession
impl Send for NewSession
impl Sync for NewSession
impl Unpin for NewSession
impl UnsafeUnpin for NewSession
impl UnwindSafe for NewSession
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