1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* Windmill API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.770.0
* Contact: contact@windmill.dev
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// ProjectLogoBodyLogo : the logo to set, or null to clear the project's current logo
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ProjectLogoBodyLogo {
/// base64-encoded image bytes (decoded size max 512KB)
#[serde(rename = "b64")]
pub b64: String,
#[serde(rename = "mime")]
pub mime: Mime,
}
impl ProjectLogoBodyLogo {
/// the logo to set, or null to clear the project's current logo
pub fn new(b64: String, mime: Mime) -> ProjectLogoBodyLogo {
ProjectLogoBodyLogo {
b64,
mime,
}
}
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Mime {
#[serde(rename = "image/png")]
Png,
#[serde(rename = "image/svg+xml")]
SvgPlusXml,
}
impl Default for Mime {
fn default() -> Mime {
Self::Png
}
}