pub struct Comment {
pub id: String,
pub client_meta: Box<CommentClientMeta>,
pub file_key: String,
pub parent_id: Option<String>,
pub user: Box<User>,
pub created_at: String,
pub resolved_at: Option<Option<String>>,
pub message: String,
pub order_id: Option<String>,
pub reactions: Vec<Reaction>,
}
Expand description
Comment : A comment or reply left by a user.
Fields§
§id: String
Unique identifier for comment.
client_meta: Box<CommentClientMeta>
§file_key: String
The file in which the comment lives
parent_id: Option<String>
If present, the id of the comment to which this is the reply
user: Box<User>
The user who left the comment
created_at: String
The UTC ISO 8601 time at which the comment was left
resolved_at: Option<Option<String>>
If set, the UTC ISO 8601 time the comment was resolved
message: String
The content of the comment
order_id: Option<String>
Only set for top level comments. The number displayed with the comment in the UI
reactions: Vec<Reaction>
An array of reactions to the comment
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