bitwarden_api_api/models/
organization_connection_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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct OrganizationConnectionResponseModel {
17    #[serde(rename = "id", alias = "Id", skip_serializing_if = "Option::is_none")]
18    pub id: Option<uuid::Uuid>,
19    #[serde(
20        rename = "type",
21        alias = "R#type",
22        skip_serializing_if = "Option::is_none"
23    )]
24    pub r#type: Option<models::OrganizationConnectionType>,
25    #[serde(
26        rename = "organizationId",
27        alias = "OrganizationId",
28        skip_serializing_if = "Option::is_none"
29    )]
30    pub organization_id: Option<uuid::Uuid>,
31    #[serde(
32        rename = "enabled",
33        alias = "Enabled",
34        skip_serializing_if = "Option::is_none"
35    )]
36    pub enabled: Option<bool>,
37    #[serde(
38        rename = "config",
39        alias = "Config",
40        skip_serializing_if = "Option::is_none"
41    )]
42    pub config: Option<serde_json::Value>,
43}
44
45impl OrganizationConnectionResponseModel {
46    pub fn new() -> OrganizationConnectionResponseModel {
47        OrganizationConnectionResponseModel {
48            id: None,
49            r#type: None,
50            organization_id: None,
51            enabled: None,
52            config: None,
53        }
54    }
55}