pub struct Client(/* private fields */);Implementations§
Source§impl Client
impl Client
Sourcepub fn get_pull_requests_by_project(
&self,
organization: impl Into<String>,
project: impl Into<String>,
) -> RequestBuilder
pub fn get_pull_requests_by_project( &self, organization: impl Into<String>, project: impl Into<String>, ) -> RequestBuilder
Retrieve all pull requests matching a specified criteria.
Please note that description field will be truncated up to 400 symbols in the result.
Arguments:
organization: The name of the Azure DevOps organization.project: Project ID or project name
Sourcepub fn get_pull_request_by_id(
&self,
organization: impl Into<String>,
pull_request_id: i32,
project: impl Into<String>,
) -> RequestBuilder
pub fn get_pull_request_by_id( &self, organization: impl Into<String>, pull_request_id: i32, project: impl Into<String>, ) -> RequestBuilder
Retrieve a pull request.
Arguments:
organization: The name of the Azure DevOps organization.pull_request_id: The ID of the pull request to retrieve.project: Project ID or project name
Sourcepub fn get_pull_requests(
&self,
organization: impl Into<String>,
repository_id: impl Into<String>,
project: impl Into<String>,
) -> RequestBuilder
pub fn get_pull_requests( &self, organization: impl Into<String>, repository_id: impl Into<String>, project: impl Into<String>, ) -> RequestBuilder
Retrieve all pull requests matching a specified criteria.
Please note that description field will be truncated up to 400 symbols in the result.
Arguments:
organization: The name of the Azure DevOps organization.repository_id: The repository ID of the pull request’s target branch.project: Project ID or project name
Sourcepub fn create(
&self,
organization: impl Into<String>,
repository_id: impl Into<String>,
project: impl Into<String>,
create_options: impl Into<GitPullRequestCreateOptions>,
) -> RequestBuilder
pub fn create( &self, organization: impl Into<String>, repository_id: impl Into<String>, project: impl Into<String>, create_options: impl Into<GitPullRequestCreateOptions>, ) -> RequestBuilder
Create a pull request.
Arguments:
organization: The name of the Azure DevOps organization.repository_id: The repository ID of the pull request’s target branch.project: Project ID or project namecreate_options: The pull request to create.
Sourcepub fn get_pull_request(
&self,
organization: impl Into<String>,
repository_id: impl Into<String>,
pull_request_id: i32,
project: impl Into<String>,
) -> RequestBuilder
pub fn get_pull_request( &self, organization: impl Into<String>, repository_id: impl Into<String>, pull_request_id: i32, project: impl Into<String>, ) -> RequestBuilder
Retrieve a pull request.
Arguments:
organization: The name of the Azure DevOps organization.repository_id: The repository ID of the pull request’s target branch.pull_request_id: The ID of the pull request to retrieve.project: Project ID or project name
Sourcepub fn update(
&self,
organization: impl Into<String>,
repository_id: impl Into<String>,
project: impl Into<String>,
pull_request_id: i32,
update_options: impl Into<GitPullRequestUpdateOptions>,
) -> RequestBuilder
pub fn update( &self, organization: impl Into<String>, repository_id: impl Into<String>, project: impl Into<String>, pull_request_id: i32, update_options: impl Into<GitPullRequestUpdateOptions>, ) -> RequestBuilder
Update a pull request
These are the properties that can be updated with the API:
- Status
- Title
- Description (up to 4000 characters)
- CompletionOptions
- MergeOptions
- AutoCompleteSetBy.Id
- TargetRefName (when the PR retargeting feature is enabled)
Attempting to update other properties outside of this list will either cause the server to throw an
InvalidArgumentValueException, or to silently ignore the update.
Arguments:
organization: The name of the Azure DevOps organization.repository_id: The repository ID of the pull request’s target branch.project: Project ID or project namepull_request_id: The ID of the pull request to retrieve.update_options: The pull request content to update.
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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