pub struct RequestBuilder { /* private fields */ }
Implementations§
Source§impl RequestBuilder
impl RequestBuilder
pub fn url<S: Into<String>>(&mut self, url: S) -> &mut Self
pub fn method<S: Into<String>>(&mut self, method: S) -> &mut Self
pub fn headers(&mut self, headers: HashMap<String, Value>) -> &mut Self
pub fn body(&mut self, body: Value) -> &mut Self
pub fn id<S: Into<String>>(&mut self, id: S) -> &mut Self
pub fn build(&self) -> Request
Auto Trait Implementations§
impl Freeze for RequestBuilder
impl RefUnwindSafe for RequestBuilder
impl Send for RequestBuilder
impl Sync for RequestBuilder
impl Unpin for RequestBuilder
impl UnwindSafe for RequestBuilder
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