Skip to main content

trieve_client/models/
auth_query.rs

1/*
2 * Trieve API
3 *
4 * Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5 *
6 * The version of the OpenAPI document: 0.11.7
7 * Contact: developers@trieve.ai
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct AuthQuery {
15    /// Code sent via email as a result of successful call to send_invitation
16    #[serde(rename = "inv_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
17    pub inv_code: Option<Option<uuid::Uuid>>,
18    /// ID of organization to authenticate into
19    #[serde(rename = "organization_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
20    pub organization_id: Option<Option<uuid::Uuid>>,
21    /// URL to redirect to after successful login
22    #[serde(rename = "redirect_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23    pub redirect_uri: Option<Option<String>>,
24}
25
26impl AuthQuery {
27    pub fn new() -> AuthQuery {
28        AuthQuery {
29            inv_code: None,
30            organization_id: None,
31            redirect_uri: None,
32        }
33    }
34}
35