Skip to main content

blockfrost_openapi/models/
proposal_withdrawals_inner.rs

1use crate::models;
2use serde::{Deserialize, Serialize};
3
4#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
5pub struct ProposalWithdrawalsInner {
6    /// Bech32 stake address
7    #[serde(rename = "stake_address")]
8    pub stake_address: String,
9    /// Withdrawal amount in Lovelaces
10    #[serde(rename = "amount")]
11    pub amount: String,
12}
13
14impl ProposalWithdrawalsInner {
15    pub fn new(stake_address: String, amount: String) -> ProposalWithdrawalsInner {
16        ProposalWithdrawalsInner {
17            stake_address,
18            amount,
19        }
20    }
21}
22