Skip to main content

bitwarden_api_api/models/
organization_domain_mini_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/// OrganizationDomainMiniResponseModel : A slim view of an organization's claimed domain,
16/// containing only the domain name and whether it has been verified. It deliberately omits the DNS
17/// verification token and the domain verification job metadata exposed by
18/// Bit.Api.AdminConsole.Models.Response.Organizations.OrganizationDomainResponseModel, so it can be
19/// returned to members who administer the organization without granting them visibility into its
20/// SSO configuration.
21#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
22pub struct OrganizationDomainMiniResponseModel {
23    #[serde(
24        rename = "object",
25        alias = "Object",
26        skip_serializing_if = "Option::is_none"
27    )]
28    pub object: Option<String>,
29    #[serde(
30        rename = "domainName",
31        alias = "DomainName",
32        skip_serializing_if = "Option::is_none"
33    )]
34    pub domain_name: Option<String>,
35    #[serde(
36        rename = "verifiedDate",
37        alias = "VerifiedDate",
38        skip_serializing_if = "Option::is_none"
39    )]
40    pub verified_date: Option<String>,
41}
42
43impl OrganizationDomainMiniResponseModel {
44    /// A slim view of an organization's claimed domain, containing only the domain name and whether
45    /// it has been verified. It deliberately omits the DNS verification token and the domain
46    /// verification job metadata exposed by
47    /// Bit.Api.AdminConsole.Models.Response.Organizations.OrganizationDomainResponseModel, so it
48    /// can be returned to members who administer the organization without granting them visibility
49    /// into its SSO configuration.
50    pub fn new() -> OrganizationDomainMiniResponseModel {
51        OrganizationDomainMiniResponseModel {
52            object: None,
53            domain_name: None,
54            verified_date: None,
55        }
56    }
57}