fastcomments_sdk/client/src/models/
react_feed_post_response.rs1use crate::client::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ReactFeedPostResponse {
16 #[serde(rename = "status")]
17 pub status: models::ApiStatus,
18 #[serde(rename = "reactType")]
19 pub react_type: String,
20 #[serde(rename = "isUndo")]
21 pub is_undo: bool,
22}
23
24impl ReactFeedPostResponse {
25 pub fn new(status: models::ApiStatus, react_type: String, is_undo: bool) -> ReactFeedPostResponse {
26 ReactFeedPostResponse {
27 status,
28 react_type,
29 is_undo,
30 }
31 }
32}
33