pub struct JWTAuth {
pub config: Config,
/* private fields */
}Fields§
§config: ConfigImplementations§
Trait Implementations§
Source§impl<'a> Auth<'a> for JWTAuth
impl<'a> Auth<'a> for JWTAuth
fn access_token<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<String, AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn to_json<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<String, AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn base_api_url(&self) -> String
fn user_agent(&self) -> String
Auto Trait Implementations§
impl Freeze for JWTAuth
impl !RefUnwindSafe for JWTAuth
impl Send for JWTAuth
impl Sync for JWTAuth
impl Unpin for JWTAuth
impl !UnwindSafe for JWTAuth
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