Trait actix_web_security::authentication::endpoint_matcher::EndpointMatcher[][src]

pub trait EndpointMatcher: Send + Sync {
    fn do_match(&self, req: &ServiceRequest) -> bool;
}

An EndpointMatcher is an implementation that takes a actix_web::dev::ServiceRequest instance and decides whether the request must be authenticated or not.

Required methods

fn do_match(&self, req: &ServiceRequest) -> bool[src]

Checks whether the actix_web::dev::ServiceRequest must be authenticated or not. Returns true if the request must be authenticated, false otherwise.

Loading content...

Implementors

Loading content...