hanzo_client/models/minted_key.rs
1/*
2 * Hanzo Cloud API
3 *
4 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
5 *
6 * The version of the OpenAPI document: v1
7 *
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 MintedKey {
16 /// AccessKey is the same value under its predecessor name, carried so callers written against the older field keep working. One value, two names.
17 #[serde(rename = "accessKey", skip_serializing_if = "Option::is_none")]
18 pub access_key: Option<String>,
19 /// Key is the credential, returned ONCE — a secret key is unreadable afterwards.
20 #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
21 pub key: Option<String>,
22 /// Limit is what the minted key may reach, echoed back so the caller can see the narrowing took. Absent means unrestricted.
23 #[serde(rename = "limit", skip_serializing_if = "Option::is_none")]
24 pub limit: Option<Vec<String>>,
25 /// Type is the class of key that was minted.
26 #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
27 pub r#type: Option<String>,
28}
29
30impl MintedKey {
31 pub fn new() -> MintedKey {
32 MintedKey {
33 access_key: None,
34 key: None,
35 limit: None,
36 r#type: None,
37 }
38 }
39}
40