bitwarden_api_api/models/
attachment_upload_data_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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AttachmentUploadDataResponseModel {
17    #[serde(
18        rename = "object",
19        alias = "Object",
20        skip_serializing_if = "Option::is_none"
21    )]
22    pub object: Option<String>,
23    #[serde(
24        rename = "attachmentId",
25        alias = "AttachmentId",
26        skip_serializing_if = "Option::is_none"
27    )]
28    pub attachment_id: Option<String>,
29    #[serde(rename = "url", alias = "Url", skip_serializing_if = "Option::is_none")]
30    pub url: Option<String>,
31    #[serde(
32        rename = "fileUploadType",
33        alias = "FileUploadType",
34        skip_serializing_if = "Option::is_none"
35    )]
36    pub file_upload_type: Option<models::FileUploadType>,
37    #[serde(
38        rename = "cipherResponse",
39        alias = "CipherResponse",
40        skip_serializing_if = "Option::is_none"
41    )]
42    pub cipher_response: Option<Box<models::CipherResponseModel>>,
43    #[serde(
44        rename = "cipherMiniResponse",
45        alias = "CipherMiniResponse",
46        skip_serializing_if = "Option::is_none"
47    )]
48    pub cipher_mini_response: Option<Box<models::CipherMiniResponseModel>>,
49}
50
51impl AttachmentUploadDataResponseModel {
52    pub fn new() -> AttachmentUploadDataResponseModel {
53        AttachmentUploadDataResponseModel {
54            object: None,
55            attachment_id: None,
56            url: None,
57            file_upload_type: None,
58            cipher_response: None,
59            cipher_mini_response: None,
60        }
61    }
62}