pub struct CsrfTokenData {
pub token: String,
pub expires_at: OffsetDateTime,
pub user_agent_hash: Option<String>,
}Expand description
CSRF token data with expiration
Fields§
§token: String§expires_at: OffsetDateTime§user_agent_hash: Option<String>Trait Implementations§
Source§impl Clone for CsrfTokenData
impl Clone for CsrfTokenData
Source§fn clone(&self) -> CsrfTokenData
fn clone(&self) -> CsrfTokenData
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 moreAuto Trait Implementations§
impl Freeze for CsrfTokenData
impl RefUnwindSafe for CsrfTokenData
impl Send for CsrfTokenData
impl Sync for CsrfTokenData
impl Unpin for CsrfTokenData
impl UnwindSafe for CsrfTokenData
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