pub struct AuthenticatorApiClient { /* private fields */ }
Implementations§
Source§impl AuthenticatorApiClient
impl AuthenticatorApiClient
pub fn new(apikey: String) -> AuthenticatorApiClient
pub async fn get_token(&mut self) -> TokenResponse
pub async fn authenticate(&mut self) -> Result<()>
Trait Implementations§
Source§impl Clone for AuthenticatorApiClient
impl Clone for AuthenticatorApiClient
Source§fn clone(&self) -> AuthenticatorApiClient
fn clone(&self) -> AuthenticatorApiClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AuthenticatorApiClient
impl Debug for AuthenticatorApiClient
Source§impl<'de> Deserialize<'de> for AuthenticatorApiClient
impl<'de> Deserialize<'de> for AuthenticatorApiClient
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AuthenticatorApiClient
impl RefUnwindSafe for AuthenticatorApiClient
impl Send for AuthenticatorApiClient
impl Sync for AuthenticatorApiClient
impl Unpin for AuthenticatorApiClient
impl UnwindSafe for AuthenticatorApiClient
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