fireblocks_sdk/models/create_validation_key_response_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 CreateValidationKeyResponseDto {
16 /// Created validation key
17 #[serde(rename = "validationKey")]
18 pub validation_key: models::ValidationKeyDto,
19 /// Admins who have to approve the validation key addition
20 #[serde(rename = "admins")]
21 pub admins: Vec<String>,
22 /// Minimal number of approvers required. 0 for all
23 #[serde(rename = "approvalThreshold")]
24 pub approval_threshold: f64,
25 /// Approval request id. Can be cancelled
26 #[serde(rename = "requestId")]
27 pub request_id: f64,
28}
29
30impl CreateValidationKeyResponseDto {
31 pub fn new(
32 validation_key: models::ValidationKeyDto,
33 admins: Vec<String>,
34 approval_threshold: f64,
35 request_id: f64,
36 ) -> CreateValidationKeyResponseDto {
37 CreateValidationKeyResponseDto {
38 validation_key,
39 admins,
40 approval_threshold,
41 request_id,
42 }
43 }
44}