pub struct Request { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl RestEndpoint for Request
impl RestEndpoint for Request
Source§fn request_headers(&self) -> Option<&HeaderMap>
fn request_headers(&self) -> Option<&HeaderMap>
Returns headers to be set into the request
Source§fn api_version(&self) -> Option<ApiVersion>
fn api_version(&self) -> Option<ApiVersion>
Returns required API version
Source§fn parameters(&self) -> QueryParams<'_>
fn parameters(&self) -> QueryParams<'_>
Query parameters for the endpoint.
Source§fn service_type(&self) -> ServiceType
fn service_type(&self) -> ServiceType
The endpoint service type.
Source§fn response_key(&self) -> Option<Cow<'static, str>>
fn response_key(&self) -> Option<Cow<'static, str>>
Returns response key under which the data is expected
Source§fn body(&self) -> Result<Option<(&'static str, Vec<u8>)>, BodyError>
fn body(&self) -> Result<Option<(&'static str, Vec<u8>)>, BodyError>
The body for the endpoint. Read more
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<E, T, C> QueryAsync<T, C> for E
impl<E, T, C> QueryAsync<T, C> for E
Source§fn query_async<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<T, ApiError<<C as RestClient>::Error>>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
E: 'async_trait,
fn query_async<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<T, ApiError<<C as RestClient>::Error>>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
E: 'async_trait,
Perform the query asynchronously against the client.
Source§impl<E, C> RawQuery<C> for Ewhere
E: RestEndpoint,
C: Client,
impl<E, C> RawQuery<C> for Ewhere
E: RestEndpoint,
C: Client,
Source§impl<E, C> RawQueryAsync<C> for E
impl<E, C> RawQueryAsync<C> for E
Source§fn download_async<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<(HeaderMap, BoxedAsyncRead), ApiError<<C as RestClient>::Error>>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
E: 'async_trait,
fn download_async<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<(HeaderMap, BoxedAsyncRead), ApiError<<C as RestClient>::Error>>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
E: 'async_trait,
Perform a download API call (returning AsyncRead or the body)
Source§fn raw_query_async_ll<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 C,
inspect_error: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>, ApiError<<C as RestClient>::Error>>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
E: 'async_trait,
fn raw_query_async_ll<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 C,
inspect_error: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>, ApiError<<C as RestClient>::Error>>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
E: 'async_trait,
Perform the low level query asynchronously against
the client.
Source§fn raw_query_async<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>, ApiError<<C as RestClient>::Error>>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
E: 'async_trait,
fn raw_query_async<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>, ApiError<<C as RestClient>::Error>>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
E: 'async_trait,
Perform the query asynchronously against the client.
Source§fn raw_query_read_body_async<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 C,
data: BoxedAsyncRead,
) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>, ApiError<<C as RestClient>::Error>>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
E: 'async_trait,
fn raw_query_read_body_async<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 C,
data: BoxedAsyncRead,
) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>, ApiError<<C as RestClient>::Error>>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
E: 'async_trait,
Perform the query asynchronously against the client.