Skip to main content

windmill_api/models/
raw_app_embed_body.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct RawAppEmbedBody {
16    /// explicit `null` clears the embed (unpublish)
17    #[serde(rename = "external_embed_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
18    pub external_embed_url: Option<Option<String>>,
19    /// hub project slug (3-50 chars, lowercase alphanumeric and hyphens, no leading/trailing hyphen)
20    #[serde(rename = "project_slug")]
21    pub project_slug: String,
22}
23
24impl RawAppEmbedBody {
25    pub fn new(project_slug: String) -> RawAppEmbedBody {
26        RawAppEmbedBody {
27            external_embed_url: None,
28            project_slug,
29        }
30    }
31}
32