fireblocks_sdk/models/
additional_info.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/// AdditionalInfo : Additional information related to the blockchain. This may
15/// include extra details about the blockchain network.
16#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
17pub struct AdditionalInfo {
18    /// The estimated annual reward rate for the blockchain, represented as a
19    /// decimal percentage value.
20    #[serde(rename = "estimatedAnnualReward")]
21    pub estimated_annual_reward: f64,
22    /// The duration of the lockup period for certain actions on the blockchain,
23    /// measured in milliseconds.
24    #[serde(rename = "lockupPeriod")]
25    pub lockup_period: f64,
26    /// The duration of the activation period for certain actions on the
27    /// blockchain, measured in milliseconds.
28    #[serde(rename = "activationPeriod")]
29    pub activation_period: f64,
30}
31
32impl AdditionalInfo {
33    /// Additional information related to the blockchain. This may include extra
34    /// details about the blockchain network.
35    pub fn new(
36        estimated_annual_reward: f64,
37        lockup_period: f64,
38        activation_period: f64,
39    ) -> AdditionalInfo {
40        AdditionalInfo {
41            estimated_annual_reward,
42            lockup_period,
43            activation_period,
44        }
45    }
46}