azisaba-graph 0.1.0-rc.16

An API for connecting and sharing data across the Azisaba Network.
Documentation
/*
 * 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};

/// PunishmentProofDeletedEventData : The data associated with the punishment proof.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PunishmentProofDeletedEventData {
    /// The unique identifier of the punishment.
    #[serde(rename = "punishmentId")]
    pub punishment_id: u64,
    #[serde(rename = "proof")]
    pub proof: Box<models::Proof>,
}

impl PunishmentProofDeletedEventData {
    /// The data associated with the punishment proof.
    pub fn new(punishment_id: u64, proof: models::Proof) -> PunishmentProofDeletedEventData {
        PunishmentProofDeletedEventData {
            punishment_id,
            proof: Box::new(proof),
        }
    }
}