openai_struct/models/invite_request.rs
1/*
2 * OpenAI API
3 *
4 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
5 *
6 * OpenAPI spec pub version: 2.3.0
7 *
8 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
9 */
10
11#[allow(unused_imports)]
12use serde_json::Value;
13
14#[derive(Debug, Serialize, Deserialize)]
15pub struct InviteRequest {
16 /// Send an email to this address
17 #[serde(rename = "email")]
18 pub email: String,
19 /// An array of projects to which membership is granted at the same time the org invite is accepted. If omitted, the user will be invited to the default project for compatibility with legacy behavior.
20 #[serde(rename = "projects")]
21 pub projects: Option<Vec<crate::models::InviteRequestProjects>>,
22 /// `owner` or `reader`
23 #[serde(rename = "role")]
24 pub role: String,
25}