Skip to main content

AuthorizedOk

Trait AuthorizedOk 

Source
pub trait AuthorizedOk {
    // Required method
    fn authorized_ok<T>(self, t: T) -> ControllerResult<T>;
}
Expand description

Turns a token into a ControllerResult, which is the only way for a controller to build one. Lives here rather than on AuthorizationToken itself because the response type is tied to actix, which the policy engine deliberately does not depend on.

Required Methods§

Source

fn authorized_ok<T>(self, t: T) -> ControllerResult<T>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§