bitwarden_api_api/models/
import_organization_ciphers_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 ImportOrganizationCiphersRequestModel {
17    #[serde(rename = "collections", skip_serializing_if = "Option::is_none")]
18    pub collections: Option<Vec<models::CollectionWithIdRequestModel>>,
19    #[serde(rename = "ciphers", skip_serializing_if = "Option::is_none")]
20    pub ciphers: Option<Vec<models::CipherRequestModel>>,
21    #[serde(
22        rename = "collectionRelationships",
23        skip_serializing_if = "Option::is_none"
24    )]
25    pub collection_relationships: Option<Vec<models::Int32Int32KeyValuePair>>,
26}
27
28impl ImportOrganizationCiphersRequestModel {
29    pub fn new() -> ImportOrganizationCiphersRequestModel {
30        ImportOrganizationCiphersRequestModel {
31            collections: None,
32            ciphers: None,
33            collection_relationships: None,
34        }
35    }
36}