Skip to main content

windmill_api/models/
mint_preview_sdk_token_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.780.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 MintPreviewSdkTokenRequest {
16    /// App being edited; may not be deployed yet.
17    #[serde(rename = "path")]
18    pub path: String,
19    /// Scopes from the policy being edited. Capped by the curated allowlist and by the caller's own scopes, and minted as the caller, so it grants nothing they could not mint themselves. 
20    #[serde(rename = "scopes")]
21    pub scopes: Vec<String>,
22}
23
24impl MintPreviewSdkTokenRequest {
25    pub fn new(path: String, scopes: Vec<String>) -> MintPreviewSdkTokenRequest {
26        MintPreviewSdkTokenRequest {
27            path,
28            scopes,
29        }
30    }
31}
32