gitea_client/models/
general_ui_settings.rs

1/*
2 * Gitea API
3 *
4 * This documentation describes the Gitea API.
5 *
6 * The version of the OpenAPI document: 1.22.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// GeneralUiSettings : GeneralUISettings contains global ui settings exposed by API
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GeneralUiSettings {
17    #[serde(rename = "allowed_reactions", skip_serializing_if = "Option::is_none")]
18    pub allowed_reactions: Option<Vec<String>>,
19    #[serde(rename = "custom_emojis", skip_serializing_if = "Option::is_none")]
20    pub custom_emojis: Option<Vec<String>>,
21    #[serde(rename = "default_theme", skip_serializing_if = "Option::is_none")]
22    pub default_theme: Option<String>,
23}
24
25impl GeneralUiSettings {
26    /// GeneralUISettings contains global ui settings exposed by API
27    pub fn new() -> GeneralUiSettings {
28        GeneralUiSettings {
29            allowed_reactions: None,
30            custom_emojis: None,
31            default_theme: None,
32        }
33    }
34}
35