Struct rspotify_http::HttpClient
source · pub struct HttpClient { /* private fields */ }
Trait Implementations§
source§impl BaseHttpClient for UreqClient
impl BaseHttpClient for UreqClient
type Error = UreqError
fn get( &self, url: &str, headers: Option<&Headers>, payload: &Query<'_> ) -> Result<String, Self::Error>
fn post( &self, url: &str, headers: Option<&Headers>, payload: &Value ) -> Result<String, Self::Error>
fn post_form( &self, url: &str, headers: Option<&Headers>, payload: &Form<'_> ) -> Result<String, Self::Error>
fn put( &self, url: &str, headers: Option<&Headers>, payload: &Value ) -> Result<String, Self::Error>
fn delete( &self, url: &str, headers: Option<&Headers>, payload: &Value ) -> Result<String, Self::Error>
source§impl Clone for UreqClient
impl Clone for UreqClient
source§fn clone(&self) -> UreqClient
fn clone(&self) -> UreqClient
Returns a copy 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 moresource§impl Debug for UreqClient
impl Debug for UreqClient
Auto Trait Implementations§
impl Freeze for UreqClient
impl !RefUnwindSafe for UreqClient
impl Send for UreqClient
impl Sync for UreqClient
impl Unpin for UreqClient
impl !UnwindSafe for UreqClient
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