pub struct Comment {
pub id: String,
pub content: String,
pub posted_at: Option<String>,
pub posted_uid: Option<String>,
pub file_attachment: Option<Attachment>,
pub uids_to_notify: Option<Vec<String>>,
pub is_deleted: bool,
pub reactions: Option<Value>,
pub project_id: Option<String>,
pub task_id: Option<String>,
}Expand description
Todoist Comment model (API v1) Represents a comment as returned by the Unified API v1 (NoteSyncView)
Fields§
§id: String§content: String§posted_at: Option<String>§posted_uid: Option<String>§file_attachment: Option<Attachment>File attachment (API returns this as file_attachment)
uids_to_notify: Option<Vec<String>>User IDs to notify about this comment
is_deleted: boolWhether the comment is deleted
reactions: Option<Value>Reactions on the comment (emoji -> list of user IDs)
project_id: Option<String>Project ID (only present in request context, not API response)
task_id: Option<String>Task ID (only present in request context, not API response)
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
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