bitwarden-api-api 3.0.0

Api bindings for the Bitwarden API.
Documentation
/*
 * Bitwarden Internal API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: latest
 *
 * Generated by: https://openapi-generator.tech
 */

use serde::{Deserialize, Serialize};

use crate::models;

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AttachmentRequestModel {
    #[serde(rename = "key", alias = "Key", skip_serializing_if = "Option::is_none")]
    pub key: Option<String>,
    #[serde(
        rename = "fileName",
        alias = "FileName",
        skip_serializing_if = "Option::is_none"
    )]
    pub file_name: Option<String>,
    #[serde(
        rename = "fileSize",
        alias = "FileSize",
        skip_serializing_if = "Option::is_none"
    )]
    pub file_size: Option<i64>,
    #[serde(
        rename = "adminRequest",
        alias = "AdminRequest",
        skip_serializing_if = "Option::is_none"
    )]
    pub admin_request: Option<bool>,
    /// The last known revision date of the Cipher that this attachment belongs to.
    #[serde(
        rename = "lastKnownRevisionDate",
        alias = "LastKnownRevisionDate",
        skip_serializing_if = "Option::is_none"
    )]
    pub last_known_revision_date: Option<String>,
}

impl AttachmentRequestModel {
    pub fn new() -> AttachmentRequestModel {
        AttachmentRequestModel {
            key: None,
            file_name: None,
            file_size: None,
            admin_request: None,
            last_known_revision_date: None,
        }
    }
}