openai_struct/models/
invite.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/// pub Invite : Represents an individual `invite` to the organization.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct Invite {
18    /// The Unix timestamp (in seconds) of when the invite was accepted.
19    #[serde(rename = "accepted_at")]
20    pub accepted_at: Option<i32>,
21    /// The email address of the individual to whom the invite was sent
22    #[serde(rename = "email")]
23    pub email: String,
24    /// The Unix timestamp (in seconds) of when the invite expires.
25    #[serde(rename = "expires_at")]
26    pub expires_at: i32,
27    /// The identifier, which can be referenced in API endpoints
28    #[serde(rename = "id")]
29    pub id: String,
30    /// The Unix timestamp (in seconds) of when the invite was sent.
31    #[serde(rename = "invited_at")]
32    pub invited_at: i32,
33    /// The object type, which is always `organization.invite`
34    #[serde(rename = "object")]
35    pub object: String,
36    /// The projects that were granted membership upon acceptance of the invite.
37    #[serde(rename = "projects")]
38    pub projects: Option<Vec<crate::models::InviteProjects>>,
39    /// `owner` or `reader`
40    #[serde(rename = "role")]
41    pub role: String,
42    /// `accepted`,`expired`, or `pending`
43    #[serde(rename = "status")]
44    pub status: String,
45}