pub struct AuthApi<'a> { /* private fields */ }Expand description
Authentication API for login/logout operations
Implementations§
Source§impl<'a> AuthApi<'a>
impl<'a> AuthApi<'a>
pub fn new(client: &'a Client) -> Self
Sourcepub async fn state_login(&self) -> Result<LoginState>
pub async fn state_login(&self) -> Result<LoginState>
This endpoint does not require authentication. Returns information about password encoding requirements and current login status.
Auto Trait Implementations§
impl<'a> Freeze for AuthApi<'a>
impl<'a> !RefUnwindSafe for AuthApi<'a>
impl<'a> Send for AuthApi<'a>
impl<'a> Sync for AuthApi<'a>
impl<'a> Unpin for AuthApi<'a>
impl<'a> UnsafeUnpin for AuthApi<'a>
impl<'a> !UnwindSafe for AuthApi<'a>
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