use crate::client::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CommentTextUpdateRequest {
#[serde(rename = "comment")]
pub comment: String,
#[serde(rename = "mentions", skip_serializing_if = "Option::is_none")]
pub mentions: Option<Vec<models::CommentUserMentionInfo>>,
#[serde(rename = "hashTags", skip_serializing_if = "Option::is_none")]
pub hash_tags: Option<Vec<models::CommentUserHashTagInfo>>,
}
impl CommentTextUpdateRequest {
pub fn new(comment: String) -> CommentTextUpdateRequest {
CommentTextUpdateRequest {
comment,
mentions: None,
hash_tags: None,
}
}
}