Struct azure_devops_rust_api::wit::comments::Client
source · pub struct Client(_);Implementations§
source§impl Client
impl Client
sourcepub fn get_comments(
&self,
organization: impl Into<String>,
project: impl Into<String>,
work_item_id: i32
) -> RequestBuilder
pub fn get_comments( &self, organization: impl Into<String>, project: impl Into<String>, work_item_id: i32 ) -> RequestBuilder
Returns a list of work item comments, pageable.
Arguments:
organization: The name of the Azure DevOps organization.project: Project ID or project namework_item_id: Id of a work item to get comments for.
sourcepub fn get_comments_batch(
&self,
organization: impl Into<String>,
project: impl Into<String>,
work_item_id: i32,
ids: impl Into<String>
) -> RequestBuilder
pub fn get_comments_batch( &self, organization: impl Into<String>, project: impl Into<String>, work_item_id: i32, ids: impl Into<String> ) -> RequestBuilder
Returns a list of work item comments by ids.
Arguments:
organization: The name of the Azure DevOps organization.project: Project ID or project namework_item_id: Id of a work item to get comments for.ids: Comma-separated list of comment ids to return.
sourcepub fn add(
&self,
organization: impl Into<String>,
body: impl Into<CommentCreate>,
project: impl Into<String>,
work_item_id: i32
) -> RequestBuilder
pub fn add( &self, organization: impl Into<String>, body: impl Into<CommentCreate>, project: impl Into<String>, work_item_id: i32 ) -> RequestBuilder
Add a comment on a work item.
Arguments:
organization: The name of the Azure DevOps organization.body: Comment create request.project: Project ID or project namework_item_id: Id of a work item.
sourcepub fn get_comment(
&self,
organization: impl Into<String>,
project: impl Into<String>,
work_item_id: i32,
comment_id: i32
) -> RequestBuilder
pub fn get_comment( &self, organization: impl Into<String>, project: impl Into<String>, work_item_id: i32, comment_id: i32 ) -> RequestBuilder
Returns a work item comment.
Arguments:
organization: The name of the Azure DevOps organization.project: Project ID or project namework_item_id: Id of a work item to get the comment.comment_id: Id of the comment to return.
sourcepub fn update(
&self,
organization: impl Into<String>,
body: impl Into<CommentUpdate>,
project: impl Into<String>,
work_item_id: i32,
comment_id: i32
) -> RequestBuilder
pub fn update( &self, organization: impl Into<String>, body: impl Into<CommentUpdate>, project: impl Into<String>, work_item_id: i32, comment_id: i32 ) -> RequestBuilder
Update a comment on a work item.
Arguments:
organization: The name of the Azure DevOps organization.body: Comment update request.project: Project ID or project namework_item_id: Id of a work item.
sourcepub fn delete(
&self,
organization: impl Into<String>,
project: impl Into<String>,
work_item_id: i32,
comment_id: i32
) -> RequestBuilder
pub fn delete( &self, organization: impl Into<String>, project: impl Into<String>, work_item_id: i32, comment_id: i32 ) -> RequestBuilder
Delete a comment on a work item.
Arguments:
organization: The name of the Azure DevOps organization.project: Project ID or project namework_item_id: Id of a work item.