pub struct AuthService { /* private fields */ }Expand description
认证服务
Implementations§
Source§impl AuthService
impl AuthService
Sourcepub fn new(http: Arc<HttpClient>) -> Self
pub fn new(http: Arc<HttpClient>) -> Self
创建新的认证服务
Sourcepub async fn login_with_email_code(
&self,
email: &str,
code: &str,
) -> SdkResult<LoginResponse>
pub async fn login_with_email_code( &self, email: &str, code: &str, ) -> SdkResult<LoginResponse>
Sourcepub async fn send_verification_code(
&self,
email: &str,
) -> SdkResult<SendCodeResponse>
pub async fn send_verification_code( &self, email: &str, ) -> SdkResult<SendCodeResponse>
Sourcepub async fn check_linkid(&self, linkid: &str) -> SdkResult<CheckLinkIDResponse>
pub async fn check_linkid(&self, linkid: &str) -> SdkResult<CheckLinkIDResponse>
Sourcepub async fn set_linkid(&self, linkid: &str) -> SdkResult<SetLinkIDResponse>
pub async fn set_linkid(&self, linkid: &str) -> SdkResult<SetLinkIDResponse>
Auto Trait Implementations§
impl Freeze for AuthService
impl !RefUnwindSafe for AuthService
impl Send for AuthService
impl Sync for AuthService
impl Unpin for AuthService
impl UnsafeUnpin 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