pub struct PullRequestsClient<'a> { /* private fields */ }Implementations§
Source§impl PullRequestsClient<'_>
impl PullRequestsClient<'_>
pub async fn list( &self, repo: &str, criteria: &GitPullRequestSearchCriteria, ) -> Result<Vec<GitPullRequest>>
Source§impl PullRequestsClient<'_>
impl PullRequestsClient<'_>
pub async fn list_by_project( &self, project: &str, criteria: &GitPullRequestSearchCriteria, ) -> Result<Vec<GitPullRequest>>
Source§impl PullRequestsClient<'_>
impl PullRequestsClient<'_>
Source§impl PullRequestsClient<'_>
impl PullRequestsClient<'_>
pub async fn get_by_id(&self, id: i64) -> Result<GitPullRequest>
Source§impl PullRequestsClient<'_>
impl PullRequestsClient<'_>
pub async fn create( &self, repo: &str, pr: &GitPullRequest, ) -> Result<GitPullRequest>
Source§impl PullRequestsClient<'_>
impl PullRequestsClient<'_>
pub async fn update( &self, repo: &str, id: i64, pr: &GitPullRequest, ) -> Result<GitPullRequest>
Source§impl PullRequestsClient<'_>
impl PullRequestsClient<'_>
Source§impl PullRequestsClient<'_>
impl PullRequestsClient<'_>
pub async fn list_work_item_refs( &self, repo: &str, id: i64, ) -> Result<Vec<ResourceRef>>
Source§impl PullRequestsClient<'_>
impl PullRequestsClient<'_>
pub async fn list_reviewers( &self, repo: &str, id: i64, ) -> Result<Vec<IdentityRefWithVote>>
Source§impl PullRequestsClient<'_>
impl PullRequestsClient<'_>
pub async fn add_reviewer( &self, repo: &str, id: i64, reviewer_id: &str, ) -> Result<IdentityRefWithVote>
Source§impl PullRequestsClient<'_>
impl PullRequestsClient<'_>
pub async fn list_threads( &self, repo: &str, id: i64, ) -> Result<Vec<GitPullRequestCommentThread>>
Source§impl PullRequestsClient<'_>
impl PullRequestsClient<'_>
pub async fn create_thread( &self, repo: &str, id: i64, thread: &GitPullRequestCommentThread, ) -> Result<GitPullRequestCommentThread>
Source§impl PullRequestsClient<'_>
impl PullRequestsClient<'_>
Source§impl PullRequestsClient<'_>
impl PullRequestsClient<'_>
Trait Implementations§
Source§impl<'a> Clone for PullRequestsClient<'a>
impl<'a> Clone for PullRequestsClient<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PullRequestsClient<'a>
impl<'a> !UnwindSafe for PullRequestsClient<'a>
impl<'a> Freeze for PullRequestsClient<'a>
impl<'a> Send for PullRequestsClient<'a>
impl<'a> Sync for PullRequestsClient<'a>
impl<'a> Unpin for PullRequestsClient<'a>
impl<'a> UnsafeUnpin for PullRequestsClient<'a>
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