bitwarden_api_api/models/
cipher_bulk_update_collections_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 CipherBulkUpdateCollectionsRequestModel {
17    #[serde(
18        rename = "organizationId",
19        alias = "OrganizationId",
20        skip_serializing_if = "Option::is_none"
21    )]
22    pub organization_id: Option<uuid::Uuid>,
23    #[serde(
24        rename = "cipherIds",
25        alias = "CipherIds",
26        skip_serializing_if = "Option::is_none"
27    )]
28    pub cipher_ids: Option<Vec<uuid::Uuid>>,
29    #[serde(
30        rename = "collectionIds",
31        alias = "CollectionIds",
32        skip_serializing_if = "Option::is_none"
33    )]
34    pub collection_ids: Option<Vec<uuid::Uuid>>,
35    /// If true, the collections will be removed from the ciphers. Otherwise, they will be added.
36    #[serde(
37        rename = "removeCollections",
38        alias = "RemoveCollections",
39        skip_serializing_if = "Option::is_none"
40    )]
41    pub remove_collections: Option<bool>,
42}
43
44impl CipherBulkUpdateCollectionsRequestModel {
45    pub fn new() -> CipherBulkUpdateCollectionsRequestModel {
46        CipherBulkUpdateCollectionsRequestModel {
47            organization_id: None,
48            cipher_ids: None,
49            collection_ids: None,
50            remove_collections: None,
51        }
52    }
53}