Skip to main content

bitwarden_api_api/models/
delete_attachment_response_model.rs

1/*
2 * Bitwarden Internal API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: latest
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15/// DeleteAttachmentResponseModel : The mutated cipher returned after deleting one of its
16/// attachments. Whether it carries full or reduced data is the controller's decision under PAM
17/// credential leasing; this model only wraps the result.
18#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
19pub struct DeleteAttachmentResponseModel {
20    #[serde(
21        rename = "object",
22        alias = "Object",
23        skip_serializing_if = "Option::is_none"
24    )]
25    pub object: Option<String>,
26    #[serde(
27        rename = "cipher",
28        alias = "Cipher",
29        skip_serializing_if = "Option::is_none"
30    )]
31    pub cipher: Option<Box<models::CipherMiniResponseModel>>,
32}
33
34impl DeleteAttachmentResponseModel {
35    /// The mutated cipher returned after deleting one of its attachments. Whether it carries full
36    /// or reduced data is the controller's decision under PAM credential leasing; this model only
37    /// wraps the result.
38    pub fn new() -> DeleteAttachmentResponseModel {
39        DeleteAttachmentResponseModel {
40            object: None,
41            cipher: None,
42        }
43    }
44}