Struct azure_devops_rust_api::tfvc::changesets::get::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 max_change_count(self, max_change_count: i32) -> Self
pub fn max_change_count(self, max_change_count: i32) -> Self
Number of changes to return (maximum 100 changes) Default: 0
sourcepub fn include_details(self, include_details: bool) -> Self
pub fn include_details(self, include_details: bool) -> Self
Include policy details and check-in notes in the response. Default: false
sourcepub fn include_work_items(self, include_work_items: bool) -> Self
pub fn include_work_items(self, include_work_items: bool) -> Self
Include workitems. Default: false
sourcepub fn max_comment_length(self, max_comment_length: i32) -> Self
pub fn max_comment_length(self, max_comment_length: i32) -> Self
Include details about associated work items in the response. Default: null
sourcepub fn include_source_rename(self, include_source_rename: bool) -> Self
pub fn include_source_rename(self, include_source_rename: bool) -> Self
Include renames. Default: false
sourcepub fn orderby(self, orderby: impl Into<String>) -> Self
pub fn orderby(self, orderby: impl Into<String>) -> Self
Results are sorted by ID in descending order by default. Use id asc to sort by ID in ascending order.
Alias or display name of user who made the changes.
sourcepub fn search_criteria_follow_renames(
self,
search_criteria_follow_renames: bool
) -> Self
pub fn search_criteria_follow_renames( self, search_criteria_follow_renames: bool ) -> Self
Whether or not to follow renames for the given item being queried.
sourcepub fn search_criteria_from_date(
self,
search_criteria_from_date: impl Into<String>
) -> Self
pub fn search_criteria_from_date( self, search_criteria_from_date: impl Into<String> ) -> Self
If provided, only include changesets created after this date (string).
sourcepub fn search_criteria_from_id(self, search_criteria_from_id: i32) -> Self
pub fn search_criteria_from_id(self, search_criteria_from_id: i32) -> Self
If provided, only include changesets after this changesetID.
sourcepub fn search_criteria_include_links(
self,
search_criteria_include_links: bool
) -> Self
pub fn search_criteria_include_links( self, search_criteria_include_links: bool ) -> Self
Whether to include the _links field on the shallow references.
sourcepub fn search_criteria_item_path(
self,
search_criteria_item_path: impl Into<String>
) -> Self
pub fn search_criteria_item_path( self, search_criteria_item_path: impl Into<String> ) -> Self
Path of item to search under.
sourcepub fn search_criteria_mappings(
self,
search_criteria_mappings: Vec<TfvcMappingFilter>
) -> Self
pub fn search_criteria_mappings( self, search_criteria_mappings: Vec<TfvcMappingFilter> ) -> Self
Following criteria available (.itemPath, .version, .versionType, .versionOption, .author, .fromId, .toId, .fromDate, .toDate) Default: null
sourcepub fn search_criteria_to_date(
self,
search_criteria_to_date: impl Into<String>
) -> Self
pub fn search_criteria_to_date( self, search_criteria_to_date: impl Into<String> ) -> Self
If provided, only include changesets created before this date (string).
sourcepub fn search_criteria_to_id(self, search_criteria_to_id: i32) -> Self
pub fn search_criteria_to_id(self, search_criteria_to_id: i32) -> Self
If provided, a version descriptor for the latest change list to include.
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.