fastcomments_sdk/client/src/models/
header_state.rs

1/*
2 * fastcomments
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 0.0.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::client::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct HeaderState {
16    #[serde(rename = "status")]
17    pub status: models::ImportedApiStatusPeriodSuccess,
18    #[serde(rename = "NotificationType")]
19    pub notification_type: serde_json::Value,
20    #[serde(rename = "userId")]
21    pub user_id: String,
22    #[serde(rename = "userIdWS")]
23    pub user_id_ws: String,
24    #[serde(rename = "notificationCounts")]
25    pub notification_counts: Vec<models::NotificationAndCount>,
26}
27
28impl HeaderState {
29    pub fn new(status: models::ImportedApiStatusPeriodSuccess, notification_type: serde_json::Value, user_id: String, user_id_ws: String, notification_counts: Vec<models::NotificationAndCount>) -> HeaderState {
30        HeaderState {
31            status,
32            notification_type,
33            user_id,
34            user_id_ws,
35            notification_counts,
36        }
37    }
38}
39