Skip to main content

akeyless_api/models/
alias_details.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 AliasDetails {
16    /// Account alias
17    #[serde(rename = "account-alias")]
18    pub account_alias: String,
19    /// Auth method name
20    #[serde(rename = "auth-method-name")]
21    pub auth_method_name: String,
22    /// Set output format to JSON
23    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
24    pub json: Option<bool>,
25}
26
27impl AliasDetails {
28    pub fn new(account_alias: String, auth_method_name: String) -> AliasDetails {
29        AliasDetails {
30            account_alias,
31            auth_method_name,
32            json: None,
33        }
34    }
35}
36