Trait EndpointMatcher

Source
pub trait EndpointMatcher: Send + Sync {
    // Required method
    fn do_match(&self, req: &ServiceRequest) -> bool;
}
Expand description

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§

Source

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

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

Implementors§