pub struct RestRequest<T> { /* private fields */ }Expand description
Binance rest requests.
Implementations§
Source§impl RestRequest<Payload>
impl RestRequest<Payload>
Sourcepub fn with_payload<T>(payload: T) -> Selfwhere
T: Rest,
pub fn with_payload<T>(payload: T) -> Selfwhere
T: Rest,
Create a rest request with given payload.
Trait Implementations§
Source§impl<T: Clone> Clone for RestRequest<T>
impl<T: Clone> Clone for RestRequest<T>
Source§fn clone(&self) -> RestRequest<T>
fn clone(&self) -> RestRequest<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for RestRequest<T>
impl<T: Debug> Debug for RestRequest<T>
Source§impl<T: Rest> From<T> for RestRequest<T>
impl<T: Rest> From<T> for RestRequest<T>
Source§impl<S> Service<RestRequest<Payload>> for BinanceRestApi<S>
impl<S> Service<RestRequest<Payload>> for BinanceRestApi<S>
Source§type Response = RestResponse<Data>
type Response = RestResponse<Data>
Responses given by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<<BinanceRestApi<S> as Service<RestRequest<Payload>>>::Response, <BinanceRestApi<S> as Service<RestRequest<Payload>>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<BinanceRestApi<S> as Service<RestRequest<Payload>>>::Response, <BinanceRestApi<S> as Service<RestRequest<Payload>>>::Error>> + Send>>
The future response value.
Source§impl<S, R> Service<RestRequest<R>> for BinanceRestApiInner<S>
impl<S, R> Service<RestRequest<R>> for BinanceRestApiInner<S>
Source§type Response = RestResponse<Data>
type Response = RestResponse<Data>
Responses given by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<<BinanceRestApiInner<S> as Service<RestRequest<R>>>::Response, <BinanceRestApiInner<S> as Service<RestRequest<R>>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<BinanceRestApiInner<S> as Service<RestRequest<R>>>::Response, <BinanceRestApiInner<S> as Service<RestRequest<R>>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl<T> Freeze for RestRequest<T>where
T: Freeze,
impl<T> RefUnwindSafe for RestRequest<T>where
T: RefUnwindSafe,
impl<T> Send for RestRequest<T>where
T: Send,
impl<T> Sync for RestRequest<T>where
T: Sync,
impl<T> Unpin for RestRequest<T>where
T: Unpin,
impl<T> UnwindSafe for RestRequest<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more