pub struct SqlIdentityPolicy(_);
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 copy 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<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
§type Identity = SqlIdentity
type Identity = SqlIdentity
The associated identity
Auto Trait Implementations§
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> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
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