#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct BlockOutputEntity {
#[serde(rename = "address")]
pub address: String,
#[serde(rename = "height")]
pub height: f32,
#[serde(rename = "limit")]
pub limit: f32,
#[serde(rename = "mempool")]
pub mempool: bool,
#[serde(rename = "outputs")]
pub outputs: Vec<crate::models::BlockOutputsEntity>,
#[serde(rename = "viewkey")]
pub viewkey: String,
}
impl BlockOutputEntity {
pub fn new(address: String, height: f32, limit: f32, mempool: bool, outputs: Vec<crate::models::BlockOutputsEntity>, viewkey: String) -> BlockOutputEntity {
BlockOutputEntity {
address,
height,
limit,
mempool,
outputs,
viewkey,
}
}
}