pub struct NoAuthProvider;Expand description
Default no-auth provider (for development)
Trait Implementations§
Source§impl AuthProvider for NoAuthProvider
impl AuthProvider for NoAuthProvider
Source§fn extract_context<'life0, 'life1, 'async_trait, B>(
&'life0 self,
_req: &'life1 Request<B>,
) -> Pin<Box<dyn Future<Output = Result<AuthContext>> + Send + 'async_trait>>where
B: 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn extract_context<'life0, 'life1, 'async_trait, B>(
&'life0 self,
_req: &'life1 Request<B>,
) -> Pin<Box<dyn Future<Output = Result<AuthContext>> + Send + 'async_trait>>where
B: 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Extract auth context from HTTP request
Source§fn is_owner<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_: &'life1 Uuid,
_: &'life2 Uuid,
_: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn is_owner<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_: &'life1 Uuid,
_: &'life2 Uuid,
_: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Check if user is owner of a resource
Auto Trait Implementations§
impl Freeze for NoAuthProvider
impl RefUnwindSafe for NoAuthProvider
impl Send for NoAuthProvider
impl Sync for NoAuthProvider
impl Unpin for NoAuthProvider
impl UnwindSafe for NoAuthProvider
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