bitwarden_api_api/models/
rotate_user_keys_request_model.rs1use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RotateUserKeysRequestModel {
17 #[serde(
18 rename = "wrappedAccountCryptographicState",
19 alias = "WrappedAccountCryptographicState"
20 )]
21 pub wrapped_account_cryptographic_state:
22 Box<models::WrappedAccountCryptographicStateRequestModel>,
23 #[serde(rename = "unlockData", alias = "UnlockData")]
24 pub unlock_data: Box<models::CommonUnlockDataRequestModel>,
25 #[serde(rename = "accountData", alias = "AccountData")]
26 pub account_data: Box<models::AccountDataRequestModel>,
27 #[serde(rename = "unlockMethodData", alias = "UnlockMethodData")]
28 pub unlock_method_data: Box<models::UnlockMethodRequestModel>,
29}
30
31impl RotateUserKeysRequestModel {
32 pub fn new(
33 wrapped_account_cryptographic_state: models::WrappedAccountCryptographicStateRequestModel,
34 unlock_data: models::CommonUnlockDataRequestModel,
35 account_data: models::AccountDataRequestModel,
36 unlock_method_data: models::UnlockMethodRequestModel,
37 ) -> RotateUserKeysRequestModel {
38 RotateUserKeysRequestModel {
39 wrapped_account_cryptographic_state: Box::new(wrapped_account_cryptographic_state),
40 unlock_data: Box::new(unlock_data),
41 account_data: Box::new(account_data),
42 unlock_method_data: Box::new(unlock_method_data),
43 }
44 }
45}