bitwarden_api_api/models/
setup_business_unit_request_body.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 SetupBusinessUnitRequestBody {
17    #[serde(rename = "userId")]
18    pub user_id: uuid::Uuid,
19    #[serde(rename = "token")]
20    pub token: String,
21    #[serde(rename = "providerKey")]
22    pub provider_key: String,
23    #[serde(rename = "organizationKey")]
24    pub organization_key: String,
25}
26
27impl SetupBusinessUnitRequestBody {
28    pub fn new(
29        user_id: uuid::Uuid,
30        token: String,
31        provider_key: String,
32        organization_key: String,
33    ) -> SetupBusinessUnitRequestBody {
34        SetupBusinessUnitRequestBody {
35            user_id,
36            token,
37            provider_key,
38            organization_key,
39        }
40    }
41}