use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TxContentStakeAddrInner {
#[serde(rename = "cert_index")]
pub cert_index: i32,
#[serde(rename = "address")]
pub address: String,
#[serde(rename = "registration")]
pub registration: bool,
}
impl TxContentStakeAddrInner {
pub fn new(cert_index: i32, address: String, registration: bool) -> TxContentStakeAddrInner {
TxContentStakeAddrInner {
cert_index,
address,
registration,
}
}
}