bitwarden_api_api/models/
inner_secret_import_request_model.rs1use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct InnerSecretImportRequestModel {
17 #[serde(rename = "id")]
18 pub id: uuid::Uuid,
19 #[serde(rename = "key")]
20 pub key: String,
21 #[serde(rename = "value")]
22 pub value: String,
23 #[serde(rename = "note")]
24 pub note: String,
25 #[serde(rename = "projectIds")]
26 pub project_ids: Vec<uuid::Uuid>,
27}
28
29impl InnerSecretImportRequestModel {
30 pub fn new(
31 id: uuid::Uuid,
32 key: String,
33 value: String,
34 note: String,
35 project_ids: Vec<uuid::Uuid>,
36 ) -> InnerSecretImportRequestModel {
37 InnerSecretImportRequestModel {
38 id,
39 key,
40 value,
41 note,
42 project_ids,
43 }
44 }
45}