bitwarden_api_api/models/
cipher_bulk_update_collections_request_model.rs1use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CipherBulkUpdateCollectionsRequestModel {
17 #[serde(rename = "organizationId", skip_serializing_if = "Option::is_none")]
18 pub organization_id: Option<uuid::Uuid>,
19 #[serde(rename = "cipherIds", skip_serializing_if = "Option::is_none")]
20 pub cipher_ids: Option<Vec<uuid::Uuid>>,
21 #[serde(rename = "collectionIds", skip_serializing_if = "Option::is_none")]
22 pub collection_ids: Option<Vec<uuid::Uuid>>,
23 #[serde(rename = "removeCollections", skip_serializing_if = "Option::is_none")]
25 pub remove_collections: Option<bool>,
26}
27
28impl CipherBulkUpdateCollectionsRequestModel {
29 pub fn new() -> CipherBulkUpdateCollectionsRequestModel {
30 CipherBulkUpdateCollectionsRequestModel {
31 organization_id: None,
32 cipher_ids: None,
33 collection_ids: None,
34 remove_collections: None,
35 }
36 }
37}