bitwarden_api_api/models/
organization_sso_request_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 OrganizationSsoRequestModel {
17    #[serde(rename = "enabled")]
18    pub enabled: bool,
19    #[serde(rename = "identifier", skip_serializing_if = "Option::is_none")]
20    pub identifier: Option<String>,
21    #[serde(rename = "data")]
22    pub data: Box<models::SsoConfigurationDataRequest>,
23}
24
25impl OrganizationSsoRequestModel {
26    pub fn new(
27        enabled: bool,
28        data: models::SsoConfigurationDataRequest,
29    ) -> OrganizationSsoRequestModel {
30        OrganizationSsoRequestModel {
31            enabled,
32            identifier: None,
33            data: Box::new(data),
34        }
35    }
36}