Skip to main content

bitwarden_api_api/models/
organization_integration_o_auth_complete_response_model.rs

1/*
2 * Bitwarden Internal API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: latest
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15/// OrganizationIntegrationOAuthCompleteResponseModel : The outcome of finishing an OAuth-based
16/// integration setup, using the Bit.Api.Dirt.Utilities.IntegrationOAuthCallbackRedirect result
17/// values the web vault already displays.
18#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
19pub struct OrganizationIntegrationOAuthCompleteResponseModel {
20    #[serde(
21        rename = "object",
22        alias = "Object",
23        skip_serializing_if = "Option::is_none"
24    )]
25    pub object: Option<String>,
26    #[serde(
27        rename = "result",
28        alias = "Result",
29        skip_serializing_if = "Option::is_none"
30    )]
31    pub result: Option<String>,
32}
33
34impl OrganizationIntegrationOAuthCompleteResponseModel {
35    /// The outcome of finishing an OAuth-based integration setup, using the
36    /// Bit.Api.Dirt.Utilities.IntegrationOAuthCallbackRedirect result values the web vault already
37    /// displays.
38    pub fn new() -> OrganizationIntegrationOAuthCompleteResponseModel {
39        OrganizationIntegrationOAuthCompleteResponseModel {
40            object: None,
41            result: None,
42        }
43    }
44}