Skip to main content

akeyless_api/models/
o_auth2_custom_claim.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/// OAuth2CustomClaim : OAuth2CustomClaim is a custom claim specific to OAuth2 authentication method.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct OAuth2CustomClaim {
17    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
18    pub name: Option<String>,
19    #[serde(rename = "values", skip_serializing_if = "Option::is_none")]
20    pub values: Option<Vec<String>>,
21}
22
23impl OAuth2CustomClaim {
24    /// OAuth2CustomClaim is a custom claim specific to OAuth2 authentication method.
25    pub fn new() -> OAuth2CustomClaim {
26        OAuth2CustomClaim {
27            name: None,
28            values: None,
29        }
30    }
31}
32