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