Skip to main content

akeyless_api/models/
unwrap_token.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 UnwrapToken {
16    /// Set output format to JSON
17    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
18    pub json: Option<bool>,
19    /// The shared token
20    #[serde(rename = "shared-token")]
21    pub shared_token: String,
22}
23
24impl UnwrapToken {
25    pub fn new(shared_token: String) -> UnwrapToken {
26        UnwrapToken {
27            json: None,
28            shared_token,
29        }
30    }
31}
32