bitwarden_api_api/models/
cipher_share_request_model.rsuse serde::{Deserialize, Serialize};
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CipherShareRequestModel {
#[serde(rename = "collectionIds")]
pub collection_ids: Vec<String>,
#[serde(rename = "cipher")]
pub cipher: Box<models::CipherRequestModel>,
}
impl CipherShareRequestModel {
pub fn new(
collection_ids: Vec<String>,
cipher: models::CipherRequestModel,
) -> CipherShareRequestModel {
CipherShareRequestModel {
collection_ids,
cipher: Box::new(cipher),
}
}
}