1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* Orvanta API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.5.1
* Contact: contact@orvanta.cloud
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EditAutoInviteRequest {
#[serde(rename = "operator", skip_serializing_if = "Option::is_none")]
pub operator: Option<bool>,
#[serde(rename = "invite_all", skip_serializing_if = "Option::is_none")]
pub invite_all: Option<bool>,
#[serde(rename = "auto_add", skip_serializing_if = "Option::is_none")]
pub auto_add: Option<bool>,
/// Explicit auto-invite domain to use instead of deriving one from the caller's own email. A workspace admin may only set their own domain; setting a different domain requires the caller to be a superadmin. Case-insensitive (stored lowercased); non-ASCII is rejected. Omitting this field leaves the currently stored domain unchanged; sending an explicit empty string resets it to the caller's own domain.
#[serde(rename = "domain", skip_serializing_if = "Option::is_none")]
pub domain: Option<String>,
}
impl EditAutoInviteRequest {
pub fn new() -> EditAutoInviteRequest {
EditAutoInviteRequest {
operator: None,
invite_all: None,
auto_add: None,
domain: None,
}
}
}