Skip to main content

blockfrost_openapi/models/
committee_quorum.rs

1use crate::models;
2use serde::{Deserialize, Serialize};
3
4/// CommitteeQuorum : Voting threshold of the committee.
5#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
6pub struct CommitteeQuorum {
7    #[serde(rename = "numerator")]
8    pub numerator: i32,
9    #[serde(rename = "denominator")]
10    pub denominator: i32,
11}
12
13impl CommitteeQuorum {
14    /// Voting threshold of the committee.
15    pub fn new(numerator: i32, denominator: i32) -> CommitteeQuorum {
16        CommitteeQuorum {
17            numerator,
18            denominator,
19        }
20    }
21}
22