Skip to main content

hanzo_client/models/
mode.rs

1/*
2 * Hanzo Cloud API
3 *
4 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
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 Mode {
16    #[serde(rename = "live", skip_serializing_if = "Option::is_none")]
17    pub live: Option<bool>,
18    #[serde(rename = "orgId", skip_serializing_if = "Option::is_none")]
19    pub org_id: Option<String>,
20    #[serde(rename = "orgName", skip_serializing_if = "Option::is_none")]
21    pub org_name: Option<String>,
22    #[serde(rename = "testMode", skip_serializing_if = "Option::is_none")]
23    pub test_mode: Option<bool>,
24}
25
26impl Mode {
27    pub fn new() -> Mode {
28        Mode {
29            live: None,
30            org_id: None,
31            org_name: None,
32            test_mode: None,
33        }
34    }
35}
36