Skip to main content

orvanta_api/models/
edit_auto_invite_request.rs

1/*
2 * Orvanta 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.7.1
7 * Contact: contact@orvanta.cloud
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 EditAutoInviteRequest {
16    #[serde(rename = "operator", skip_serializing_if = "Option::is_none")]
17    pub operator: Option<bool>,
18    #[serde(rename = "invite_all", skip_serializing_if = "Option::is_none")]
19    pub invite_all: Option<bool>,
20    #[serde(rename = "auto_add", skip_serializing_if = "Option::is_none")]
21    pub auto_add: Option<bool>,
22    /// 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. 
23    #[serde(rename = "domain", skip_serializing_if = "Option::is_none")]
24    pub domain: Option<String>,
25}
26
27impl EditAutoInviteRequest {
28    pub fn new() -> EditAutoInviteRequest {
29        EditAutoInviteRequest {
30            operator: None,
31            invite_all: None,
32            auto_add: None,
33            domain: None,
34        }
35    }
36}
37