bitwarden_api_api/models/
account_data_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 AccountDataRequestModel {
17    #[serde(rename = "ciphers")]
18    pub ciphers: Option<Vec<models::CipherWithIdRequestModel>>,
19    #[serde(rename = "folders")]
20    pub folders: Option<Vec<models::FolderWithIdRequestModel>>,
21    #[serde(rename = "sends")]
22    pub sends: Option<Vec<models::SendWithIdRequestModel>>,
23}
24
25impl AccountDataRequestModel {
26    pub fn new(
27        ciphers: Option<Vec<models::CipherWithIdRequestModel>>,
28        folders: Option<Vec<models::FolderWithIdRequestModel>>,
29        sends: Option<Vec<models::SendWithIdRequestModel>>,
30    ) -> AccountDataRequestModel {
31        AccountDataRequestModel {
32            ciphers,
33            folders,
34            sends,
35        }
36    }
37}