Skip to main content

fastcomments_sdk/client/src/models/
reset_user_notifications_response.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 ResetUserNotificationsResponse {
16    #[serde(rename = "status")]
17    pub status: models::ApiStatus,
18    #[serde(rename = "code", skip_serializing_if = "Option::is_none")]
19    pub code: Option<Code>,
20}
21
22impl ResetUserNotificationsResponse {
23    pub fn new(status: models::ApiStatus) -> ResetUserNotificationsResponse {
24        ResetUserNotificationsResponse {
25            status,
26            code: None,
27        }
28    }
29}
30/// 
31#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
32pub enum Code {
33    #[serde(rename = "ignored-since-impersonated")]
34    IgnoredSinceImpersonated,
35}
36
37impl Default for Code {
38    fn default() -> Code {
39        Self::IgnoredSinceImpersonated
40    }
41}
42