windmill-api 1.894.1

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.894.1
 * 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 ListTotpEnabledUsers200Response {
    /// whether the instance requires two-factor authentication for password logins
    #[serde(rename = "required")]
    pub required: bool,
    #[serde(rename = "users")]
    pub users: Vec<String>,
}

impl ListTotpEnabledUsers200Response {
    pub fn new(required: bool, users: Vec<String>) -> ListTotpEnabledUsers200Response {
        ListTotpEnabledUsers200Response {
            required,
            users,
        }
    }
}