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 AccountDataRequestModel {
    #[serde(rename = "ciphers", alias = "Ciphers")]
    pub ciphers: Option<Vec<models::CipherWithIdRequestModel>>,
    #[serde(rename = "folders", alias = "Folders")]
    pub folders: Option<Vec<models::FolderWithIdRequestModel>>,
    #[serde(rename = "sends", alias = "Sends")]
    pub sends: Option<Vec<models::SendWithIdRequestModel>>,
}

impl AccountDataRequestModel {
    pub fn new(
        ciphers: Option<Vec<models::CipherWithIdRequestModel>>,
        folders: Option<Vec<models::FolderWithIdRequestModel>>,
        sends: Option<Vec<models::SendWithIdRequestModel>>,
    ) -> AccountDataRequestModel {
        AccountDataRequestModel {
            ciphers,
            folders,
            sends,
        }
    }
}