Skip to main content

RustAuthActixWebExt

Trait RustAuthActixWebExt 

Source
pub trait RustAuthActixWebExt {
    // Required methods
    fn mount_routes(
        &self,
        options: RustAuthActixWebOptions,
    ) -> Result<Scope, RustAuthActixWebError>;
    fn mount_at_base_path(
        &self,
        options: RustAuthActixWebOptions,
    ) -> Result<Scope, RustAuthActixWebError>;
}
Expand description

Convenience extension methods for mounting RustAuth into Actix Web.

Implemented for RustAuth and Arc<RustAuth>.

Required Methods§

Source

fn mount_routes( &self, options: RustAuthActixWebOptions, ) -> Result<Scope, RustAuthActixWebError>

Return unmounted RustAuth routes for callers that want to nest manually.

Source

fn mount_at_base_path( &self, options: RustAuthActixWebOptions, ) -> Result<Scope, RustAuthActixWebError>

Mount RustAuth nested at RustAuthOptions.base_path, defaulting to /api/auth.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl RustAuthActixWebExt for Arc<RustAuth>

Source§

impl RustAuthActixWebExt for RustAuth

Implementors§