Struct azure_devops_rust_api::wit::comments::Client
source · pub struct Client(/* private fields */);
Implementations§
source§impl Client
impl Client
sourcepub fn add_work_item_comment(
&self,
organization: impl Into<String>,
body: impl Into<CommentCreate>,
project: impl Into<String>,
work_item_id: i32,
format: impl Into<String>
) -> RequestBuilder
pub fn add_work_item_comment( &self, organization: impl Into<String>, body: impl Into<CommentCreate>, project: impl Into<String>, work_item_id: i32, format: impl Into<String> ) -> 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.format
: Format of a work item comment (Markdown or Html).
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 update_work_item_comment(
&self,
organization: impl Into<String>,
body: impl Into<CommentUpdate>,
project: impl Into<String>,
work_item_id: i32,
comment_id: i32,
format: impl Into<String>
) -> RequestBuilder
pub fn update_work_item_comment( &self, organization: impl Into<String>, body: impl Into<CommentUpdate>, project: impl Into<String>, work_item_id: i32, comment_id: i32, format: impl Into<String> ) -> 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.format
: Format of a work item comment (Markdown or Html).
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_comment(
&self,
organization: impl Into<String>,
body: impl Into<CommentCreate>,
project: impl Into<String>,
work_item_id: i32
) -> RequestBuilder
pub fn add_comment( &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_comment(
&self,
organization: impl Into<String>,
body: impl Into<CommentUpdate>,
project: impl Into<String>,
work_item_id: i32,
comment_id: i32
) -> RequestBuilder
pub fn update_comment( &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.
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