pub struct Client { /* private fields */ }
Implementations§
Source§impl Client
impl Client
pub fn inner(&self) -> &Client
pub fn with_url<'a>(&'a self, url: &'a str) -> ClientRef<'a>
pub fn get(&self, params: impl Params) -> RequestBuilder
pub fn post(&self, params: impl Params) -> RequestBuilder
pub async fn verify_logged_in(&self) -> Result<String>
pub async fn get_token(&self, token: impl AsRef<str>) -> Result<String>
pub async fn get_tokens( &self, tokens: impl IntoIterator<Item = impl AsRef<str>>, ) -> Result<Vec<String>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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