Struct azure_devops_rust_api::git::pull_request_labels::Client   
source · pub struct Client(/* private fields */);Implementations§
source§impl Client
 
impl Client
sourcepub fn list(
    &self,
    organization: impl Into<String>,
    repository_id: impl Into<String>,
    pull_request_id: i32,
    project: impl Into<String>
) -> RequestBuilder
 
pub fn list( &self, organization: impl Into<String>, repository_id: impl Into<String>, pull_request_id: i32, project: impl Into<String> ) -> RequestBuilder
Get all the labels (tags) assigned to 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: ID of the pull request.
- project: Project ID or project name
sourcepub fn create(
    &self,
    organization: impl Into<String>,
    body: impl Into<WebApiCreateTagRequestData>,
    repository_id: impl Into<String>,
    pull_request_id: i32,
    project: impl Into<String>
) -> RequestBuilder
 
pub fn create( &self, organization: impl Into<String>, body: impl Into<WebApiCreateTagRequestData>, repository_id: impl Into<String>, pull_request_id: i32, project: impl Into<String> ) -> RequestBuilder
Create a tag (if that does not exists yet) and add that as a label (tag) for a specified pull request. The only required field is the name of the new label (tag).
Arguments:
- organization: The name of the Azure DevOps organization.
- body: Label to assign to the pull request.
- repository_id: The repository ID of the pull request’s target branch.
- pull_request_id: ID of the pull request.
- project: Project ID or project name
sourcepub fn get(
    &self,
    organization: impl Into<String>,
    repository_id: impl Into<String>,
    pull_request_id: i32,
    label_id_or_name: impl Into<String>,
    project: impl Into<String>
) -> RequestBuilder
 
pub fn get( &self, organization: impl Into<String>, repository_id: impl Into<String>, pull_request_id: i32, label_id_or_name: impl Into<String>, project: impl Into<String> ) -> RequestBuilder
Retrieves a single label (tag) that has been assigned to 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: ID of the pull request.
- label_id_or_name: The name or ID of the label requested.
- project: Project ID or project name
sourcepub fn delete(
    &self,
    organization: impl Into<String>,
    repository_id: impl Into<String>,
    pull_request_id: i32,
    label_id_or_name: impl Into<String>,
    project: impl Into<String>
) -> RequestBuilder
 
pub fn delete( &self, organization: impl Into<String>, repository_id: impl Into<String>, pull_request_id: i32, label_id_or_name: impl Into<String>, project: impl Into<String> ) -> RequestBuilder
Removes a label (tag) from the set of those assigned to the pull request. The tag itself will not be deleted.
Arguments:
- organization: The name of the Azure DevOps organization.
- repository_id: The repository ID of the pull request’s target branch.
- pull_request_id: ID of the pull request.
- label_id_or_name: The name or ID of the label requested.
- project: Project ID or project name
Auto Trait Implementations§
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