/*
* Azisaba Graph API
*
* An API for connecting and sharing data across the Azisaba Network.
*
* The version of the OpenAPI document: 0.0.1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// PunishmentProofCreatedEventData : The data associated with the punishment proof.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PunishmentProofCreatedEventData {
/// The unique identifier of the punishment.
#[serde(rename = "punishmentId")]
pub punishment_id: u64,
#[serde(rename = "proof")]
pub proof: Box<models::Proof>,
}
impl PunishmentProofCreatedEventData {
/// The data associated with the punishment proof.
pub fn new(punishment_id: u64, proof: models::Proof) -> PunishmentProofCreatedEventData {
PunishmentProofCreatedEventData {
punishment_id,
proof: Box::new(proof),
}
}
}