pub struct AuthRouter { /* private fields */ }Implementations§
Source§impl AuthRouter
impl AuthRouter
pub fn new(context: AuthContext, endpoints: Vec<AuthEndpoint>) -> AuthRouter
pub fn try_new( context: AuthContext, endpoints: Vec<AuthEndpoint>, ) -> Result<AuthRouter, OpenAuthError>
pub fn with_async_endpoints( context: AuthContext, endpoints: Vec<AuthEndpoint>, async_endpoints: Vec<AsyncAuthEndpoint>, ) -> Result<AuthRouter, OpenAuthError>
pub fn endpoint_registry(&self) -> Vec<EndpointInfo>
pub fn openapi_schema(&self) -> Value
pub fn handle( &self, request: Request<Vec<u8>>, ) -> Result<Response<Vec<u8>>, OpenAuthError>
pub async fn handle_async( &self, request: Request<Vec<u8>>, ) -> Result<Response<Vec<u8>>, OpenAuthError>
Trait Implementations§
Source§impl Clone for AuthRouter
impl Clone for AuthRouter
Source§fn clone(&self) -> AuthRouter
fn clone(&self) -> AuthRouter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for AuthRouter
impl !UnwindSafe for AuthRouter
impl Freeze for AuthRouter
impl Send for AuthRouter
impl Sync for AuthRouter
impl Unpin for AuthRouter
impl UnsafeUnpin for AuthRouter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more