fishpi_sdk/wire/
comment.rs1use crate::wire::de::string_lossy;
2use serde::Deserialize;
3
4#[derive(Clone, Debug, Deserialize)]
5pub struct WireCommentUpdate {
6 #[serde(rename = "commentContent", default, deserialize_with = "string_lossy")]
7 pub comment_content: String,
8}
9
10#[derive(Clone, Debug, Deserialize)]
11pub struct WireCommentVote {
12 #[serde(rename = "type", default)]
13 pub vote_type: Option<i64>,
14}
15
16#[derive(Clone, Debug, Deserialize)]
17pub struct WireCommentRemove {
18 #[serde(rename = "commentId", default, deserialize_with = "string_lossy")]
19 pub comment_id: String,
20}