windmill_api/models/set_onboarding_profile_request.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.816.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 SetOnboardingProfileRequest {
16 #[serde(rename = "email")]
17 pub email: String,
18 /// free-form context from the invite, every key optional. The frontend reads `touch_point` (answers onboarding's source question), `company` and `workspace_name` (prefill the first workspace's name), `hub_projects` (slugs surfaced first on an empty workspace), `tools` (integrations, used to pick hub projects when none are named) and `starter_prompts` (`[{label, prompt}]`, replacing the home page's example prompts); unknown keys are kept and ignored
19 #[serde(rename = "profile")]
20 pub profile: serde_json::Value,
21}
22
23impl SetOnboardingProfileRequest {
24 pub fn new(email: String, profile: serde_json::Value) -> SetOnboardingProfileRequest {
25 SetOnboardingProfileRequest {
26 email,
27 profile,
28 }
29 }
30}
31