Skip to main content

akeyless_api/models/
decrypt_pkcs1.rs

1/*
2 * Akeyless API
3 *
4 * The purpose of this application is to provide access to Akeyless API.
5 *
6 * The version of the OpenAPI document: 3.0
7 * Contact: support@akeyless.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct DecryptPkcs1 {
16    /// Ciphertext to be decrypted in base64 encoded format
17    #[serde(rename = "ciphertext")]
18    pub ciphertext: String,
19    /// The display id of the key to use in the decryption process
20    #[serde(rename = "display-id", skip_serializing_if = "Option::is_none")]
21    pub display_id: Option<String>,
22    /// The item id of the key to use in the decryption process
23    #[serde(rename = "item-id", skip_serializing_if = "Option::is_none")]
24    pub item_id: Option<i64>,
25    /// Set output format to JSON
26    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
27    pub json: Option<bool>,
28    /// The name of the key to use in the decryption process
29    #[serde(rename = "key-name")]
30    pub key_name: String,
31    /// If specified, the output will be formatted accordingly. options: [base64]
32    #[serde(rename = "output-format", skip_serializing_if = "Option::is_none")]
33    pub output_format: Option<String>,
34    /// Authentication token (see `/auth` and `/configure`)
35    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
36    pub token: Option<String>,
37    /// The universal identity token, Required only for universal_identity authentication
38    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
39    pub uid_token: Option<String>,
40    /// key version (relevant only for classic key)
41    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
42    pub version: Option<i32>,
43}
44
45impl DecryptPkcs1 {
46    pub fn new(ciphertext: String, key_name: String) -> DecryptPkcs1 {
47        DecryptPkcs1 {
48            ciphertext,
49            display_id: None,
50            item_id: None,
51            json: None,
52            key_name,
53            output_format: None,
54            token: None,
55            uid_token: None,
56            version: None,
57        }
58    }
59}
60