bitwarden_api_api/models/
reset_password_with_org_id_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 ResetPasswordWithOrgIdRequestModel {
17    #[serde(
18        rename = "resetPasswordKey",
19        alias = "ResetPasswordKey",
20        skip_serializing_if = "Option::is_none"
21    )]
22    pub reset_password_key: Option<String>,
23    #[serde(
24        rename = "masterPasswordHash",
25        alias = "MasterPasswordHash",
26        skip_serializing_if = "Option::is_none"
27    )]
28    pub master_password_hash: Option<String>,
29    #[serde(rename = "organizationId", alias = "OrganizationId")]
30    pub organization_id: uuid::Uuid,
31}
32
33impl ResetPasswordWithOrgIdRequestModel {
34    pub fn new(organization_id: uuid::Uuid) -> ResetPasswordWithOrgIdRequestModel {
35        ResetPasswordWithOrgIdRequestModel {
36            reset_password_key: None,
37            master_password_hash: None,
38            organization_id,
39        }
40    }
41}