Struct azure_devops_rust_api::test::runs::query::RequestBuilder
source · 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.
The building of a request is typically finalized by invoking .await on
RequestBuilder. This implicitly invokes the IntoFuture::into_future()
method, which converts RequestBuilder into a future that executes the request
operation 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 plan_ids(self, plan_ids: impl Into<String>) -> Self
pub fn plan_ids(self, plan_ids: impl Into<String>) -> Self
Plan Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
sourcepub fn is_automated(self, is_automated: bool) -> Self
pub fn is_automated(self, is_automated: bool) -> Self
Automation type of the Runs to be queried.
sourcepub fn publish_context(self, publish_context: impl Into<String>) -> Self
pub fn publish_context(self, publish_context: impl Into<String>) -> Self
PublishContext of the Runs to be queried.
sourcepub fn build_ids(self, build_ids: impl Into<String>) -> Self
pub fn build_ids(self, build_ids: impl Into<String>) -> Self
Build Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
sourcepub fn build_def_ids(self, build_def_ids: impl Into<String>) -> Self
pub fn build_def_ids(self, build_def_ids: impl Into<String>) -> Self
Build Definition Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
sourcepub fn branch_name(self, branch_name: impl Into<String>) -> Self
pub fn branch_name(self, branch_name: impl Into<String>) -> Self
Source Branch name of the Runs to be queried.
sourcepub fn release_ids(self, release_ids: impl Into<String>) -> Self
pub fn release_ids(self, release_ids: impl Into<String>) -> Self
Release Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
sourcepub fn release_def_ids(self, release_def_ids: impl Into<String>) -> Self
pub fn release_def_ids(self, release_def_ids: impl Into<String>) -> Self
Release Definition Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
sourcepub fn release_env_ids(self, release_env_ids: impl Into<String>) -> Self
pub fn release_env_ids(self, release_env_ids: impl Into<String>) -> Self
Release Environment Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
sourcepub fn release_env_def_ids(self, release_env_def_ids: impl Into<String>) -> Self
pub fn release_env_def_ids(self, release_env_def_ids: impl Into<String>) -> Self
Release Environment Definition Ids of the Runs to be queried, comma separated list of valid ids (limit no. of ids 10).
sourcepub fn run_title(self, run_title: impl Into<String>) -> Self
pub fn run_title(self, run_title: impl Into<String>) -> Self
Run Title of the Runs to be queried.
sourcepub fn continuation_token(self, continuation_token: impl Into<String>) -> Self
pub fn continuation_token(self, continuation_token: impl Into<String>) -> Self
continuation token received from previous batch or null for first batch. It is not supposed to be created (or altered, if received from last batch) by user.
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.