nethsm_sdk_rs/models/
ak_pub.rs

1/*
2 * NetHSM
3 *
4 * All endpoints expect exactly the specified JSON. Additional properties will cause a Bad Request Error (400). All HTTP errors contain a JSON structure with an explanation of type string. All [base64](https://tools.ietf.org/html/rfc4648#section-4) encoded values are Big Endian.
5 *
6 * The version of the OpenAPI document: v1
7 * Contact: Nitrokey <info@nitrokey.com>
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
12#[non_exhaustive]
13pub struct AkPub {
14    #[serde(rename = "P256", skip_serializing_if = "Option::is_none")]
15    pub p256: Option<String>,
16    #[serde(rename = "P384", skip_serializing_if = "Option::is_none")]
17    pub p384: Option<String>,
18}
19
20impl AkPub {
21    pub fn new() -> AkPub {
22        AkPub {
23            p256: None,
24            p384: None,
25        }
26    }
27}