pub struct AuthService { /* private fields */ }Expand description
Auth-related APIs (async).
Implementations§
Source§impl AuthService
impl AuthService
Sourcepub async fn create_account(
&self,
params: CreateAccountParams,
) -> Result<AqaraValueResponse>
pub async fn create_account( &self, params: CreateAccountParams, ) -> Result<AqaraValueResponse>
config.auth.createAccount.
Sourcepub async fn get_auth_code(
&self,
params: GetAuthCodeParams,
) -> Result<AqaraValueResponse>
pub async fn get_auth_code( &self, params: GetAuthCodeParams, ) -> Result<AqaraValueResponse>
config.auth.getAuthCode.
Sourcepub async fn get_token(
&self,
params: GetTokenParams,
) -> Result<AqaraValueResponse>
pub async fn get_token( &self, params: GetTokenParams, ) -> Result<AqaraValueResponse>
config.auth.getToken.
Sourcepub async fn refresh_token(
&self,
params: RefreshTokenParams,
) -> Result<AqaraValueResponse>
pub async fn refresh_token( &self, params: RefreshTokenParams, ) -> Result<AqaraValueResponse>
config.auth.refreshToken.
Trait Implementations§
Source§impl Clone for AuthService
impl Clone for AuthService
Source§fn clone(&self) -> AuthService
fn clone(&self) -> AuthService
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 moreAuto Trait Implementations§
impl Freeze for AuthService
impl !RefUnwindSafe for AuthService
impl Send for AuthService
impl Sync for AuthService
impl Unpin for AuthService
impl !UnwindSafe for AuthService
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