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