pub struct CCGAuth {
pub config: Config,
/* private fields */
}Expand description
Client Credentials Grant (CCG) authentication
Fields§
§config: ConfigImplementations§
Trait Implementations§
Source§impl<'a> Auth<'a> for CCGAuth
impl<'a> Auth<'a> for CCGAuth
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 CCGAuth
impl !RefUnwindSafe for CCGAuth
impl Send for CCGAuth
impl Sync for CCGAuth
impl Unpin for CCGAuth
impl !UnwindSafe for CCGAuth
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