bitwarden_api_api/models/
provider_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 ProviderResponseModel {
17    #[serde(
18        rename = "object",
19        alias = "Object",
20        skip_serializing_if = "Option::is_none"
21    )]
22    pub object: Option<String>,
23    #[serde(rename = "id", alias = "Id", skip_serializing_if = "Option::is_none")]
24    pub id: Option<uuid::Uuid>,
25    #[serde(
26        rename = "name",
27        alias = "Name",
28        skip_serializing_if = "Option::is_none"
29    )]
30    pub name: Option<String>,
31    #[serde(
32        rename = "businessName",
33        alias = "BusinessName",
34        skip_serializing_if = "Option::is_none"
35    )]
36    pub business_name: Option<String>,
37    #[serde(
38        rename = "businessAddress1",
39        alias = "BusinessAddress1",
40        skip_serializing_if = "Option::is_none"
41    )]
42    pub business_address1: Option<String>,
43    #[serde(
44        rename = "businessAddress2",
45        alias = "BusinessAddress2",
46        skip_serializing_if = "Option::is_none"
47    )]
48    pub business_address2: Option<String>,
49    #[serde(
50        rename = "businessAddress3",
51        alias = "BusinessAddress3",
52        skip_serializing_if = "Option::is_none"
53    )]
54    pub business_address3: Option<String>,
55    #[serde(
56        rename = "businessCountry",
57        alias = "BusinessCountry",
58        skip_serializing_if = "Option::is_none"
59    )]
60    pub business_country: Option<String>,
61    #[serde(
62        rename = "businessTaxNumber",
63        alias = "BusinessTaxNumber",
64        skip_serializing_if = "Option::is_none"
65    )]
66    pub business_tax_number: Option<String>,
67    #[serde(
68        rename = "billingEmail",
69        alias = "BillingEmail",
70        skip_serializing_if = "Option::is_none"
71    )]
72    pub billing_email: Option<String>,
73    #[serde(
74        rename = "creationDate",
75        alias = "CreationDate",
76        skip_serializing_if = "Option::is_none"
77    )]
78    pub creation_date: Option<String>,
79    #[serde(
80        rename = "type",
81        alias = "R#type",
82        skip_serializing_if = "Option::is_none"
83    )]
84    pub r#type: Option<models::ProviderType>,
85}
86
87impl ProviderResponseModel {
88    pub fn new() -> ProviderResponseModel {
89        ProviderResponseModel {
90            object: None,
91            id: None,
92            name: None,
93            business_name: None,
94            business_address1: None,
95            business_address2: None,
96            business_address3: None,
97            business_country: None,
98            business_tax_number: None,
99            billing_email: None,
100            creation_date: None,
101            r#type: None,
102        }
103    }
104}