bitwarden-api-api 3.0.0

Api bindings for the Bitwarden API.
Documentation
/*
 * Bitwarden Internal API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: latest
 *
 * Generated by: https://openapi-generator.tech
 */

use serde::{Deserialize, Serialize};

use crate::models;

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct WrappedAccountCryptographicStateRequestModel {
    #[serde(
        rename = "publicKeyEncryptionKeyPair",
        alias = "PublicKeyEncryptionKeyPair"
    )]
    pub public_key_encryption_key_pair: Box<models::PublicKeyEncryptionKeyPairRequestModel>,
    #[serde(rename = "signatureKeyPair", alias = "SignatureKeyPair")]
    pub signature_key_pair: Box<models::SignatureKeyPairRequestModel>,
    #[serde(rename = "securityState", alias = "SecurityState")]
    pub security_state: Box<models::SecurityStateModel>,
}

impl WrappedAccountCryptographicStateRequestModel {
    pub fn new(
        public_key_encryption_key_pair: models::PublicKeyEncryptionKeyPairRequestModel,
        signature_key_pair: models::SignatureKeyPairRequestModel,
        security_state: models::SecurityStateModel,
    ) -> WrappedAccountCryptographicStateRequestModel {
        WrappedAccountCryptographicStateRequestModel {
            public_key_encryption_key_pair: Box::new(public_key_encryption_key_pair),
            signature_key_pair: Box::new(signature_key_pair),
            security_state: Box::new(security_state),
        }
    }
}