Skip to main content

azisaba_graph/models/
punishment_proof_updated_event_data.rs

1/*
2 * Azisaba Graph API
3 *
4 * An API for connecting and sharing data across the Azisaba Network.
5 *
6 * The version of the OpenAPI document: 0.0.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// PunishmentProofUpdatedEventData : The data associated with the punishment proof.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PunishmentProofUpdatedEventData {
17    /// The unique identifier of the punishment.
18    #[serde(rename = "punishmentId")]
19    pub punishment_id: u64,
20    #[serde(rename = "proof")]
21    pub proof: Box<models::Proof>,
22}
23
24impl PunishmentProofUpdatedEventData {
25    /// The data associated with the punishment proof.
26    pub fn new(punishment_id: u64, proof: models::Proof) -> PunishmentProofUpdatedEventData {
27        PunishmentProofUpdatedEventData {
28            punishment_id,
29            proof: Box::new(proof),
30        }
31    }
32}
33