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