Skip to main content

windmill_api/models/
project_logo_body_logo.rs

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