Skip to main content

blockfrost_openapi/models/
tx_content_pool_retires_inner.rs

1use crate::models;
2use serde::{Deserialize, Serialize};
3
4#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
5pub struct TxContentPoolRetiresInner {
6    /// Index of the certificate within the transaction
7    #[serde(rename = "cert_index")]
8    pub cert_index: i32,
9    /// Bech32 stake pool ID
10    #[serde(rename = "pool_id")]
11    pub pool_id: String,
12    /// Epoch in which the pool becomes retired
13    #[serde(rename = "retiring_epoch")]
14    pub retiring_epoch: i32,
15}
16
17impl TxContentPoolRetiresInner {
18    pub fn new(cert_index: i32, pool_id: String, retiring_epoch: i32) -> TxContentPoolRetiresInner {
19        TxContentPoolRetiresInner {
20            cert_index,
21            pool_id,
22            retiring_epoch,
23        }
24    }
25}
26