Skip to main content

windmill_api/models/
guest_entry.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.812.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// GuestEntry : What a signed-out visitor needs to start a guest sign-in.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GuestEntry {
17    #[serde(rename = "workspace_id")]
18    pub workspace_id: String,
19    #[serde(rename = "app_path")]
20    pub app_path: String,
21}
22
23impl GuestEntry {
24    /// What a signed-out visitor needs to start a guest sign-in.
25    pub fn new(workspace_id: String, app_path: String) -> GuestEntry {
26        GuestEntry {
27            workspace_id,
28            app_path,
29        }
30    }
31}
32