windmill-api 1.834.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.834.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetOidcSigningStatus200Response {
    #[serde(rename = "mode")]
    pub mode: Mode,
    #[serde(rename = "keys")]
    pub keys: Vec<models::GetOidcSigningStatus200ResponseKeysInner>,
    #[serde(rename = "signer", skip_serializing_if = "Option::is_none")]
    pub signer: Option<Box<models::GetOidcSigningStatus200ResponseSigner>>,
}

impl GetOidcSigningStatus200Response {
    pub fn new(mode: Mode, keys: Vec<models::GetOidcSigningStatus200ResponseKeysInner>) -> GetOidcSigningStatus200Response {
        GetOidcSigningStatus200Response {
            mode,
            keys,
            signer: None,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Mode {
    #[serde(rename = "database")]
    Database,
    #[serde(rename = "file")]
    File,
    #[serde(rename = "external")]
    External,
}

impl Default for Mode {
    fn default() -> Mode {
        Self::Database
    }
}