pub struct Auth0Client { /* private fields */ }Implementations§
Source§impl Auth0Client
impl Auth0Client
pub fn new(config: Auth0Config) -> Self
Sourcepub async fn get_access_token(&self) -> Result<TokenResponse, AppError>
pub async fn get_access_token(&self) -> Result<TokenResponse, AppError>
Obtain a machine-to-machine access token via client credentials flow.
Auto Trait Implementations§
impl Freeze for Auth0Client
impl !RefUnwindSafe for Auth0Client
impl Send for Auth0Client
impl Sync for Auth0Client
impl Unpin for Auth0Client
impl UnsafeUnpin for Auth0Client
impl !UnwindSafe for Auth0Client
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