pub struct API { /* private fields */ }
Implementations§
Source§impl API
impl API
pub fn new() -> Self
pub fn timeout(self, timeout: Duration) -> Self
pub fn base_url(self, url: &str) -> Self
pub fn send<R: Request>( &self, request: &R, ) -> Result<<R as Request>::ResponseType, Error>
pub async fn send_async<R: Request>( &self, request: &R, ) -> Result<<R as Request>::ResponseType, Error>
Auto Trait Implementations§
impl Freeze for API
impl RefUnwindSafe for API
impl Send for API
impl Sync for API
impl Unpin for API
impl UnwindSafe for API
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