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};

/// PunishmentRevokedEventData : The data associated with the punishment.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PunishmentRevokedEventData {
    #[serde(rename = "punishment")]
    pub punishment: Box<models::Punishment>,
}

impl PunishmentRevokedEventData {
    /// The data associated with the punishment.
    pub fn new(punishment: models::Punishment) -> PunishmentRevokedEventData {
        PunishmentRevokedEventData {
            punishment: Box::new(punishment),
        }
    }
}