Trait actix_web::pred::Predicate[][src]

pub trait Predicate<S> {
    fn check(&self, _: &Request, _: &S) -> bool;
}

Trait defines resource route predicate. Predicate can modify request object. It is also possible to to store extra attributes on request by using Extensions container, Extensions container available via HttpRequest::extensions() method.

Required Methods

Check if request matches predicate

Implementors