pub struct SqlIdentityPolicy(/* private fields */);
Expand description
Use a SQL database for request identity storage
Trait Implementations§
Source§impl Clone for SqlIdentityPolicy
impl Clone for SqlIdentityPolicy
Source§fn clone(&self) -> SqlIdentityPolicy
fn clone(&self) -> SqlIdentityPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<S> IdentityPolicy<S> for SqlIdentityPolicy
impl<S> IdentityPolicy<S> for SqlIdentityPolicy
Source§fn from_request(&self, req: &HttpRequest<S>) -> Self::Future
fn from_request(&self, req: &HttpRequest<S>) -> Self::Future
Process a request recieved by the server, returns an Identity struct
§Arguments
req
- The HTTP request recieved
Source§type Identity = SqlIdentity
type Identity = SqlIdentity
The associated identity
Auto Trait Implementations§
impl Freeze for SqlIdentityPolicy
impl !RefUnwindSafe for SqlIdentityPolicy
impl !Send for SqlIdentityPolicy
impl !Sync for SqlIdentityPolicy
impl Unpin for SqlIdentityPolicy
impl !UnwindSafe for SqlIdentityPolicy
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<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more