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(rename = "object", skip_serializing_if = "Option::is_none")]
18    pub object: Option<String>,
19    #[serde(rename = "attachmentId", skip_serializing_if = "Option::is_none")]
20    pub attachment_id: Option<String>,
21    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
22    pub url: Option<String>,
23    #[serde(rename = "fileUploadType", skip_serializing_if = "Option::is_none")]
24    pub file_upload_type: Option<models::FileUploadType>,
25    #[serde(rename = "cipherResponse", skip_serializing_if = "Option::is_none")]
26    pub cipher_response: Option<Box<models::CipherResponseModel>>,
27    #[serde(rename = "cipherMiniResponse", skip_serializing_if = "Option::is_none")]
28    pub cipher_mini_response: Option<Box<models::CipherMiniResponseModel>>,
29}
30
31impl AttachmentUploadDataResponseModel {
32    pub fn new() -> AttachmentUploadDataResponseModel {
33        AttachmentUploadDataResponseModel {
34            object: None,
35            attachment_id: None,
36            url: None,
37            file_upload_type: None,
38            cipher_response: None,
39            cipher_mini_response: None,
40        }
41    }
42}