bitwarden_api_api/models/
device_keys_request_model.rsuse serde::{Deserialize, Serialize};
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DeviceKeysRequestModel {
#[serde(rename = "encryptedUserKey")]
pub encrypted_user_key: String,
#[serde(rename = "encryptedPublicKey")]
pub encrypted_public_key: String,
#[serde(rename = "encryptedPrivateKey")]
pub encrypted_private_key: String,
}
impl DeviceKeysRequestModel {
pub fn new(
encrypted_user_key: String,
encrypted_public_key: String,
encrypted_private_key: String,
) -> DeviceKeysRequestModel {
DeviceKeysRequestModel {
encrypted_user_key,
encrypted_public_key,
encrypted_private_key,
}
}
}