/*
* 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};
/// PunishmentCreatedEvent : Represents an event indicating that a punishment was created. Requires the `stream:read` and `punishments:read` scopes to receive this event.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PunishmentCreatedEvent {
#[serde(rename = "data")]
pub data: Box<models::PunishmentCreatedEventData>,
}
impl PunishmentCreatedEvent {
/// Represents an event indicating that a punishment was created. Requires the `stream:read` and `punishments:read` scopes to receive this event.
pub fn new(data: models::PunishmentCreatedEventData) -> PunishmentCreatedEvent {
PunishmentCreatedEvent {
data: Box::new(data),
}
}
}