Struct gotham_restful::StaticAuthHandler
source · pub struct StaticAuthHandler { /* private fields */ }
Expand description
An AuthHandler returning always the same secret. See AuthMiddleware for a usage example.
Implementations§
Trait Implementations§
source§impl<T> AuthHandler<T> for StaticAuthHandler
impl<T> AuthHandler<T> for StaticAuthHandler
source§impl Clone for StaticAuthHandler
impl Clone for StaticAuthHandler
source§fn clone(&self) -> StaticAuthHandler
fn clone(&self) -> StaticAuthHandler
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 moreAuto Trait Implementations§
impl RefUnwindSafe for StaticAuthHandler
impl Send for StaticAuthHandler
impl Sync for StaticAuthHandler
impl Unpin for StaticAuthHandler
impl UnwindSafe for StaticAuthHandler
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
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>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
Convert
&self
to an expression for Diesel’s query builder. Read more