nethsm_sdk_rs/models/tls_key_generate_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, Default, Serialize, Deserialize)]
12pub struct TlsKeyGenerateRequestData {
13 #[serde(rename = "type")]
14 pub r#type: crate::models::TlsKeyType,
15 #[serde(rename = "length", skip_serializing_if = "Option::is_none")]
16 pub length: Option<i32>,
17}
18
19impl TlsKeyGenerateRequestData {
20 pub fn new(r#type: crate::models::TlsKeyType) -> TlsKeyGenerateRequestData {
21 TlsKeyGenerateRequestData {
22 r#type,
23 length: None,
24 }
25 }
26}