pub struct RequestBuilder { /* private fields */ }Expand description
RequestBuilder provides a mechanism for setting optional parameters on a request.
Each RequestBuilder parameter method call returns Self, so setting of multiple
parameters can be chained.
To finalize and submit the request, invoke .await, which
converts the RequestBuilder into a future,
executes the request and returns a Result with the parsed
response.
If you need lower-level access to the raw response details
(e.g. to inspect response headers or raw body data) then you
can finalize the request using the
RequestBuilder::send() method which returns a future
that resolves to a lower-level Response value.
Implementations§
Source§impl RequestBuilder
impl RequestBuilder
Sourcepub fn request_data_include_links(
self,
request_data_include_links: bool,
) -> Self
pub fn request_data_include_links( self, request_data_include_links: bool, ) -> Self
Whether to include the _links field on the shallow references
Sourcepub fn request_data_item_label_filter(
self,
request_data_item_label_filter: impl Into<String>,
) -> Self
pub fn request_data_item_label_filter( self, request_data_item_label_filter: impl Into<String>, ) -> Self
maxItemCount
Sourcepub fn request_data_label_scope(
self,
request_data_label_scope: impl Into<String>,
) -> Self
pub fn request_data_label_scope( self, request_data_label_scope: impl Into<String>, ) -> Self
maxItemCount
Sourcepub fn request_data_max_item_count(
self,
request_data_max_item_count: i32,
) -> Self
pub fn request_data_max_item_count( self, request_data_max_item_count: i32, ) -> Self
maxItemCount
Sourcepub fn request_data_name(self, request_data_name: impl Into<String>) -> Self
pub fn request_data_name(self, request_data_name: impl Into<String>) -> Self
maxItemCount
Sourcepub fn request_data_owner(self, request_data_owner: impl Into<String>) -> Self
pub fn request_data_owner(self, request_data_owner: impl Into<String>) -> Self
maxItemCount
Sourcepub fn send(self) -> BoxFuture<'static, Result<Response>>
pub fn send(self) -> BoxFuture<'static, Result<Response>>
Returns a future that sends the request and returns a Response object that provides low-level access to full response details.
You should typically use .await (which implicitly calls IntoFuture::into_future()) to finalize and send requests rather than send().
However, this function can provide more flexibility when required.
Trait Implementations§
Source§impl Clone for RequestBuilder
impl Clone for RequestBuilder
Source§fn clone(&self) -> RequestBuilder
fn clone(&self) -> RequestBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl IntoFuture for RequestBuilder
impl IntoFuture for RequestBuilder
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Returns a future that sends the request and returns the parsed response body.
You should not normally call this method directly, simply invoke .await which implicitly calls IntoFuture::into_future.
See IntoFuture documentation for more details.