fastcomments_sdk/client/src/models/
comment_text_update_request.rs1use crate::client::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct CommentTextUpdateRequest {
16 #[serde(rename = "comment")]
17 pub comment: String,
18 #[serde(rename = "mentions", skip_serializing_if = "Option::is_none")]
19 pub mentions: Option<Vec<models::CommentUserMentionInfo>>,
20 #[serde(rename = "hashTags", skip_serializing_if = "Option::is_none")]
21 pub hash_tags: Option<Vec<models::CommentUserHashTagInfo>>,
22}
23
24impl CommentTextUpdateRequest {
25 pub fn new(comment: String) -> CommentTextUpdateRequest {
26 CommentTextUpdateRequest {
27 comment,
28 mentions: None,
29 hash_tags: None,
30 }
31 }
32}
33