fireblocks_sdk/models/
amount_aggregation_time_period_method.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/// AmountAggregationTimePeriodMethod : * PER_SINGLE_MATCH - Apply the limit to
15/// each listed entity * ACROSS_ALL_MATCHES - Apply the limit to the sum of all
16/// listed entities
17/// * PER_SINGLE_MATCH - Apply the limit to each listed entity *
18///   ACROSS_ALL_MATCHES - Apply the limit to the sum of all listed entities
19#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
20pub enum AmountAggregationTimePeriodMethod {
21    #[serde(rename = "PER_SINGLE_MATCH")]
22    PerSingleMatch,
23    #[serde(rename = "ACROSS_ALL_MATCHES")]
24    AcrossAllMatches,
25}
26
27impl std::fmt::Display for AmountAggregationTimePeriodMethod {
28    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
29        match self {
30            Self::PerSingleMatch => write!(f, "PER_SINGLE_MATCH"),
31            Self::AcrossAllMatches => write!(f, "ACROSS_ALL_MATCHES"),
32        }
33    }
34}
35
36impl Default for AmountAggregationTimePeriodMethod {
37    fn default() -> AmountAggregationTimePeriodMethod {
38        Self::PerSingleMatch
39    }
40}