fastcomments_sdk/client/src/models/
api_get_comments_response.rs1use crate::client::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ApiGetCommentsResponse {
16 #[serde(rename = "status")]
17 pub status: models::ApiStatus,
18 #[serde(rename = "comments")]
19 pub comments: Vec<models::ApiComment>,
20}
21
22impl ApiGetCommentsResponse {
23 pub fn new(status: models::ApiStatus, comments: Vec<models::ApiComment>) -> ApiGetCommentsResponse {
24 ApiGetCommentsResponse {
25 status,
26 comments,
27 }
28 }
29}
30