1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* Hanzo Cloud API
*
* 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/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct LicensingPeriodPubkeyView {
/// Alg is always \"Ed25519\".
#[serde(rename = "alg", skip_serializing_if = "Option::is_none")]
pub alg: Option<String>,
/// Keys is the same key as a single-entry JWKS (OKP/Ed25519), for JWKS-shaped consumers.
#[serde(rename = "keys", skip_serializing_if = "Option::is_none")]
pub keys: Option<Vec<models::LicensingPeriodJwk>>,
/// Provider names the KMS holding the private half (\"local\" | \"aws\" | ...). \"local\" means a development key — never trust it in production.
#[serde(rename = "provider", skip_serializing_if = "Option::is_none")]
pub provider: Option<String>,
/// PublicKey is the 32-byte Ed25519 public key, standard base64. This is the form the engine embeds for offline verification.
#[serde(rename = "public_key", skip_serializing_if = "Option::is_none")]
pub public_key: Option<String>,
/// Schema is the license payload schema version this key signs.
#[serde(rename = "schema", skip_serializing_if = "Option::is_none")]
pub schema: Option<i32>,
/// TokenFormat states the wire layout so an implementer can verify a token without this service's source.
#[serde(rename = "token_format", skip_serializing_if = "Option::is_none")]
pub token_format: Option<String>,
}
impl LicensingPeriodPubkeyView {
pub fn new() -> LicensingPeriodPubkeyView {
LicensingPeriodPubkeyView {
alg: None,
keys: None,
provider: None,
public_key: None,
schema: None,
token_format: None,
}
}
}