Skip to main content

bitwarden_api_api/models/
report_file.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 ReportFile {
17    /// Uniquely identifies an uploaded file.
18    #[serde(rename = "id", alias = "Id", skip_serializing_if = "Option::is_none")]
19    pub id: Option<String>,
20    /// Attached file name.
21    #[serde(
22        rename = "fileName",
23        alias = "FileName",
24        skip_serializing_if = "Option::is_none"
25    )]
26    pub file_name: Option<String>,
27    /// Size of the attached file in bytes.
28    #[serde(
29        rename = "size",
30        alias = "Size",
31        skip_serializing_if = "Option::is_none"
32    )]
33    pub size: Option<i64>,
34    /// When true the uploaded file's length has been validated.
35    #[serde(
36        rename = "validated",
37        alias = "Validated",
38        skip_serializing_if = "Option::is_none"
39    )]
40    pub validated: Option<bool>,
41}
42
43impl ReportFile {
44    pub fn new() -> ReportFile {
45        ReportFile {
46            id: None,
47            file_name: None,
48            size: None,
49            validated: None,
50        }
51    }
52}