Skip to main content

windmill_api/models/
test_o_auth_client_credentials_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.873.1
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 TestOAuthClientCredentialsRequest {
16    /// client name, the key of the entry in the instance OAuth setting
17    #[serde(rename = "name")]
18    pub name: String,
19    /// the entry as stored in the instance OAuth setting
20    #[serde(rename = "entry")]
21    pub entry: serde_json::Value,
22}
23
24impl TestOAuthClientCredentialsRequest {
25    pub fn new(name: String, entry: serde_json::Value) -> TestOAuthClientCredentialsRequest {
26        TestOAuthClientCredentialsRequest {
27            name,
28            entry,
29        }
30    }
31}
32