gitea_client/models/update_user_avatar_option.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/// UpdateUserAvatarOption : UpdateUserAvatarUserOption options when updating the user avatar
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UpdateUserAvatarOption {
17 /// image must be base64 encoded
18 #[serde(rename = "image", skip_serializing_if = "Option::is_none")]
19 pub image: Option<String>,
20}
21
22impl UpdateUserAvatarOption {
23 /// UpdateUserAvatarUserOption options when updating the user avatar
24 pub fn new() -> UpdateUserAvatarOption {
25 UpdateUserAvatarOption {
26 image: None,
27 }
28 }
29}
30