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.
Implementors
impl EndpointMatcher for AllEndpointsMatcher
[src]
impl EndpointMatcher for AllEndpointsMatcher
[src]fn do_match(&self, _req: &ServiceRequest) -> bool
[src]
impl EndpointMatcher for SpecificUrlsMatcher
[src]
impl EndpointMatcher for SpecificUrlsMatcher
[src]