/* * Gitea API. * * This documentation describes the Gitea API. * * The version of the OpenAPI document: 1.17.3 * * Generated by: https://openapi-generator.tech */ /// UserSettingsOptions : UserSettingsOptions represents options to change user settings #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct UserSettingsOptions { #[serde(rename = "description", skip_serializing_if = "Option::is_none")] pub description: Option, #[serde(rename = "diff_view_style", skip_serializing_if = "Option::is_none")] pub diff_view_style: Option, #[serde(rename = "full_name", skip_serializing_if = "Option::is_none")] pub full_name: Option, #[serde(rename = "hide_activity", skip_serializing_if = "Option::is_none")] pub hide_activity: Option, /// Privacy #[serde(rename = "hide_email", skip_serializing_if = "Option::is_none")] pub hide_email: Option, #[serde(rename = "language", skip_serializing_if = "Option::is_none")] pub language: Option, #[serde(rename = "location", skip_serializing_if = "Option::is_none")] pub location: Option, #[serde(rename = "theme", skip_serializing_if = "Option::is_none")] pub theme: Option, #[serde(rename = "website", skip_serializing_if = "Option::is_none")] pub website: Option, } impl UserSettingsOptions { /// UserSettingsOptions represents options to change user settings pub fn new() -> UserSettingsOptions { UserSettingsOptions { description: None, diff_view_style: None, full_name: None, hide_activity: None, hide_email: None, language: None, location: None, theme: None, website: None, } } }