use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use super::{CommentId, TextAnchor};
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct Comment {
pub id: CommentId,
pub imported_id: Option<String>,
pub author: Option<String>,
pub date: Option<DateTime<Utc>>,
pub text: String,
pub anchors: Vec<TextAnchor>,
pub anchored_text: Option<String>,
pub resolved: Option<bool>,
pub parent_id: Option<CommentId>,
pub replies: Vec<CommentId>,
}