Skip to main content

azure_devops/pull_requests/models/structs/
comment.rs

1use crate::common::IdentityRef;
2use crate::pull_requests::models::CommentType;
3use chrono::{DateTime, Utc};
4use serde::{Deserialize, Serialize};
5
6#[derive(Debug, Clone, Default, Serialize, Deserialize)]
7#[serde(rename_all = "camelCase", default)]
8pub struct Comment {
9    pub _links: Option<serde_json::Value>,
10    pub id: Option<i64>,
11    pub parent_comment_id: Option<i64>,
12    pub author: Option<IdentityRef>,
13    pub content: Option<String>,
14    pub comment_type: Option<CommentType>,
15    pub is_deleted: bool,
16    pub published_date: Option<DateTime<Utc>>,
17    pub last_updated_date: Option<DateTime<Utc>>,
18    pub last_content_updated_date: Option<DateTime<Utc>>,
19}