#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct UpdateKeyRequestModel {
#[serde(rename = "masterPasswordHash")]
pub master_password_hash: String,
#[serde(rename = "ciphers")]
pub ciphers: Vec<crate::models::CipherWithIdRequestModel>,
#[serde(rename = "folders")]
pub folders: Vec<crate::models::FolderWithIdRequestModel>,
#[serde(rename = "sends", skip_serializing_if = "Option::is_none")]
pub sends: Option<Vec<crate::models::SendWithIdRequestModel>>,
#[serde(rename = "privateKey")]
pub private_key: String,
#[serde(rename = "key")]
pub key: String,
}
impl UpdateKeyRequestModel {
pub fn new(
master_password_hash: String,
ciphers: Vec<crate::models::CipherWithIdRequestModel>,
folders: Vec<crate::models::FolderWithIdRequestModel>,
private_key: String,
key: String,
) -> UpdateKeyRequestModel {
UpdateKeyRequestModel {
master_password_hash,
ciphers,
folders,
sends: None,
private_key,
key,
}
}
}