Struct binance_spot_connector_rust::http::request::RequestBuilder
source · pub struct RequestBuilder { /* private fields */ }
Expand description
/// API HTTP Request
A low-level request builder for API integration decoupled from any specific underlying HTTP library.
Implementations§
source§impl RequestBuilder
impl RequestBuilder
pub fn new(method: Method, path: &str) -> Self
sourcepub fn params<'a>(
self,
params: impl IntoIterator<Item = (&'a str, &'a str)>
) -> Self
pub fn params<'a>( self, params: impl IntoIterator<Item = (&'a str, &'a str)> ) -> Self
Append params
to the request’s query string. Parameters may
share the same key, and will result in a query string with one or
more duplicated query parameter keys.
pub fn credentials(self, credentials: Credentials) -> Self
pub fn sign(self) -> Self
Trait Implementations§
source§impl From<RequestBuilder> for Request
impl From<RequestBuilder> for Request
source§fn from(builder: RequestBuilder) -> Request
fn from(builder: RequestBuilder) -> Request
Converts to this type from the input type.
Auto Trait Implementations§
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