fireblocks_sdk/models/
validation_key_dto.rs

1// Fireblocks API
2//
3// Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain.  - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
4//
5// The version of the OpenAPI document: 1.8.0
6// Contact: developers@fireblocks.com
7// Generated by: https://openapi-generator.tech
8
9use {
10    crate::models,
11    serde::{Deserialize, Serialize},
12};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ValidationKeyDto {
16    /// External validation key id set by Fireblocks.
17    #[serde(rename = "keyId")]
18    pub key_id: String,
19    /// PEM encoded public key used for the validation.
20    #[serde(rename = "publicKeyPem")]
21    pub public_key_pem: String,
22    #[serde(rename = "daysTillExpired")]
23    pub days_till_expired: f64,
24    /// True if the validation key is enabled.
25    #[serde(rename = "enabled")]
26    pub enabled: bool,
27    /// Creation date (timestamp) in milliseconds.
28    #[serde(rename = "createdAt")]
29    pub created_at: f64,
30}
31
32impl ValidationKeyDto {
33    pub fn new(
34        key_id: String,
35        public_key_pem: String,
36        days_till_expired: f64,
37        enabled: bool,
38        created_at: f64,
39    ) -> ValidationKeyDto {
40        ValidationKeyDto {
41            key_id,
42            public_key_pem,
43            days_till_expired,
44            enabled,
45            created_at,
46        }
47    }
48}