pub struct OpenLibraryAuthClient { /* private fields */ }Implementations§
Source§impl OpenLibraryAuthClient
impl OpenLibraryAuthClient
pub fn new(host: Option<Url>) -> Result<OpenLibraryAuthClient, OpenLibraryError>
pub async fn login( &self, username: String, password: String, ) -> Result<Session, OpenLibraryError>
Auto Trait Implementations§
impl Freeze for OpenLibraryAuthClient
impl !RefUnwindSafe for OpenLibraryAuthClient
impl Send for OpenLibraryAuthClient
impl Sync for OpenLibraryAuthClient
impl Unpin for OpenLibraryAuthClient
impl UnsafeUnpin for OpenLibraryAuthClient
impl !UnwindSafe for OpenLibraryAuthClient
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