pub struct Comment {Show 16 fields
pub work_item_tracking_resource: WorkItemTrackingResource,
pub created_by: Option<IdentityRef>,
pub created_date: Option<OffsetDateTime>,
pub created_on_behalf_date: Option<OffsetDateTime>,
pub created_on_behalf_of: Option<IdentityRef>,
pub format: Option<Format>,
pub id: Option<i32>,
pub is_deleted: Option<bool>,
pub mentions: Vec<CommentMention>,
pub modified_by: Option<IdentityRef>,
pub modified_date: Option<OffsetDateTime>,
pub reactions: Vec<CommentReaction>,
pub rendered_text: Option<String>,
pub text: Option<String>,
pub version: Option<i32>,
pub work_item_id: Option<i32>,
}Expand description
Comment on a Work Item.
Fields§
§work_item_tracking_resource: WorkItemTrackingResource§created_by: Option<IdentityRef>§created_date: Option<OffsetDateTime>The creation date of the comment.
created_on_behalf_date: Option<OffsetDateTime>Effective Date/time value for adding the comment. Can be optionally different from CreatedDate.
created_on_behalf_of: Option<IdentityRef>§format: Option<Format>Represents the possible types for the comment format.
id: Option<i32>The id assigned to the comment.
is_deleted: Option<bool>Indicates if the comment has been deleted.
mentions: Vec<CommentMention>The mentions of the comment.
modified_by: Option<IdentityRef>§modified_date: Option<OffsetDateTime>The last modification date of the comment.
reactions: Vec<CommentReaction>The reactions of the comment.
rendered_text: Option<String>The text of the comment in HTML format.
text: Option<String>The text of the comment.
version: Option<i32>The current version of the comment.
work_item_id: Option<i32>The id of the work item this comment belongs to.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Comment
impl<'de> Deserialize<'de> for Comment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Comment
Auto Trait Implementations§
impl Freeze for Comment
impl RefUnwindSafe for Comment
impl Send for Comment
impl Sync for Comment
impl Unpin for Comment
impl UnwindSafe for Comment
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