bitwarden_api_api/models/
secret_update_request_model.rsuse serde::{Deserialize, Serialize};
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SecretUpdateRequestModel {
#[serde(rename = "key")]
pub key: String,
#[serde(rename = "value")]
pub value: String,
#[serde(rename = "note")]
pub note: String,
#[serde(rename = "projectIds", skip_serializing_if = "Option::is_none")]
pub project_ids: Option<Vec<uuid::Uuid>>,
#[serde(
rename = "accessPoliciesRequests",
skip_serializing_if = "Option::is_none"
)]
pub access_policies_requests: Option<Box<models::SecretAccessPoliciesRequestsModel>>,
}
impl SecretUpdateRequestModel {
pub fn new(key: String, value: String, note: String) -> SecretUpdateRequestModel {
SecretUpdateRequestModel {
key,
value,
note,
project_ids: None,
access_policies_requests: None,
}
}
}