pub struct AsyncRequest { /* private fields */ }Implementations§
Source§impl AsyncRequest
impl AsyncRequest
pub fn new(client: AsyncClient, method: Method) -> Self
pub fn builder(client: AsyncClient, method: Method) -> Self
pub async fn send(self) -> AsyncResponseHandler
Trait Implementations§
Source§impl ClientixRequestBuilder for AsyncRequest
impl ClientixRequestBuilder for AsyncRequest
fn config(&mut self) -> &mut RequestConfig
fn result(&mut self) -> &mut ClientixResult<()>
fn path(self, path: &str) -> Selfwhere
Self: Sized,
fn query(self, key: &str, value: &str) -> Selfwhere
Self: Sized,
fn queries(self, queries: HashMap<String, String>) -> Selfwhere
Self: Sized,
fn header(self, key: &str, value: &str, sensitive: bool) -> Selfwhere
Self: Sized,
fn headers(self, headers: HashMap<String, String>) -> Selfwhere
Self: Sized,
fn basic_auth(self, username: &str, password: &str) -> Selfwhere
Self: Sized,
fn bearer_auth(self, token: &str) -> Selfwhere
Self: Sized,
fn body<T: Serialize>(self, body: T, content_type: ContentType) -> Selfwhere
Self: Sized,
Auto Trait Implementations§
impl Freeze for AsyncRequest
impl !RefUnwindSafe for AsyncRequest
impl Send for AsyncRequest
impl Sync for AsyncRequest
impl Unpin for AsyncRequest
impl UnsafeUnpin for AsyncRequest
impl !UnwindSafe for AsyncRequest
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