nethsm_sdk_rs/models/
provision_request_data.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, Serialize, Deserialize)]
12#[non_exhaustive]
13pub struct ProvisionRequestData {
14    #[serde(rename = "unlockPassphrase")]
15    pub unlock_passphrase: String,
16    #[serde(rename = "adminPassphrase")]
17    pub admin_passphrase: String,
18    #[serde(rename = "systemTime")]
19    pub system_time: String,
20}
21
22impl ProvisionRequestData {
23    pub fn new(
24        unlock_passphrase: String,
25        admin_passphrase: String,
26        system_time: String,
27    ) -> ProvisionRequestData {
28        ProvisionRequestData {
29            unlock_passphrase,
30            admin_passphrase,
31            system_time,
32        }
33    }
34}