Skip to main content

blockfrost_openapi/models/
stake_distribution_party.rs

1use crate::models;
2use serde::{Deserialize, Serialize};
3
4/// StakeDistributionParty : Signer registered to a signature round. 
5#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
6pub struct StakeDistributionParty {
7    /// The unique identifier of the signer
8    #[serde(rename = "party_id", skip_serializing_if = "Option::is_none")]
9    pub party_id: Option<String>,
10    /// Stake share as computed in the 'stake distribution' by the Cardano Node, multiplied by a billion (1.0e9)
11    #[serde(rename = "stake", skip_serializing_if = "Option::is_none")]
12    pub stake: Option<i64>,
13}
14
15impl StakeDistributionParty {
16    /// Signer registered to a signature round. 
17    pub fn new() -> StakeDistributionParty {
18        StakeDistributionParty {
19            party_id: None,
20            stake: None,
21        }
22    }
23}
24