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§
Sourcefn mount_routes(
&self,
options: RustAuthActixWebOptions,
) -> Result<Scope, RustAuthActixWebError>
fn mount_routes( &self, options: RustAuthActixWebOptions, ) -> Result<Scope, RustAuthActixWebError>
Return unmounted RustAuth routes for callers that want to nest manually.
Sourcefn mount_at_base_path(
&self,
options: RustAuthActixWebOptions,
) -> Result<Scope, RustAuthActixWebError>
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".