[−][src]Struct swagger::auth::MakeAllowAllAuthenticator
Dummy Authenticator, that blindly inserts authorization data, allowing all access to an endpoint with the specified subject.
Methods
impl<T, RC> MakeAllowAllAuthenticator<T, RC> where
RC: RcBound,
RC::Result: Send + 'static, [src]
RC: RcBound,
RC::Result: Send + 'static,
pub fn new<U: Into<String>>(inner: T, subject: U) -> Self[src]
Create a middleware that authorizes with the configured subject.
Trait Implementations
impl<T: Debug, RC: Debug> Debug for MakeAllowAllAuthenticator<T, RC> where
RC: RcBound,
RC::Result: Send + 'static, [src]
RC: RcBound,
RC::Result: Send + 'static,
impl<'a, T, SC, RC, E, ME, S, OB, F> MakeService<&'a SC> for MakeAllowAllAuthenticator<T, RC> where
RC: RcBound,
RC::Result: Send + 'static,
T: MakeService<&'a SC, Error = E, MakeError = ME, Service = S, ReqBody = ContextualPayload<Body, RC::Result>, ResBody = OB, Future = F>,
S: Service<Error = E, ReqBody = ContextualPayload<Body, RC::Result>, ResBody = OB> + 'static,
ME: ErrorBound,
E: ErrorBound,
F: Future<Item = S, Error = ME> + Send + 'static,
S::Future: Send,
OB: Payload, [src]
RC: RcBound,
RC::Result: Send + 'static,
T: MakeService<&'a SC, Error = E, MakeError = ME, Service = S, ReqBody = ContextualPayload<Body, RC::Result>, ResBody = OB, Future = F>,
S: Service<Error = E, ReqBody = ContextualPayload<Body, RC::Result>, ResBody = OB> + 'static,
ME: ErrorBound,
E: ErrorBound,
F: Future<Item = S, Error = ME> + Send + 'static,
S::Future: Send,
OB: Payload,
type ReqBody = ContextualPayload<Body, RC>
The Payload body of the http::Request.
type ResBody = OB
The Payload body of the http::Response.
type Error = E
The error type that can be returned by Services.
type MakeError = ME
The error type that can be returned when creating a new Service.
type Service = AllowAllAuthenticator<S, RC>
The resolved Service from new_service().
type Future = Box<dyn Future<Item = Self::Service, Error = ME> + Send>
The future returned from new_service of a Service.
fn make_service(&mut self, service_ctx: &'a SC) -> Self::Future[src]
fn poll_ready(&mut self) -> Result<Async<()>, Self::MakeError>[src]
Auto Trait Implementations
impl<T, RC> RefUnwindSafe for MakeAllowAllAuthenticator<T, RC> where
RC: RefUnwindSafe,
T: RefUnwindSafe,
RC: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, RC> Send for MakeAllowAllAuthenticator<T, RC> where
T: Send,
T: Send,
impl<T, RC> Sync for MakeAllowAllAuthenticator<T, RC> where
RC: Sync,
T: Sync,
RC: Sync,
T: Sync,
impl<T, RC> Unpin for MakeAllowAllAuthenticator<T, RC> where
RC: Unpin,
T: Unpin,
RC: Unpin,
T: Unpin,
impl<T, RC> UnwindSafe for MakeAllowAllAuthenticator<T, RC> where
RC: UnwindSafe,
T: UnwindSafe,
RC: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<N, Ctx> MakeService<Ctx> for N where
N: NewService, [src]
N: NewService,
type ReqBody = <N as NewService>::ReqBody
The Payload body of the http::Request.
type ResBody = <N as NewService>::ResBody
The Payload body of the http::Response.
type Error = <N as NewService>::Error
The error type that can be returned by Services.
type Service = <N as NewService>::Service
The resolved Service from new_service().
type Future = <N as NewService>::Future
The future returned from new_service of a Service.
type MakeError = <N as NewService>::InitError
The error type that can be returned when creating a new Service.
fn poll_ready(
&mut self
) -> Result<Async<()>, <N as MakeService<Ctx>>::MakeError>[src]
&mut self
) -> Result<Async<()>, <N as MakeService<Ctx>>::MakeError>
fn make_service(&mut self, Ctx) -> <N as MakeService<Ctx>>::Future[src]
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized, [src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,