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

/// Revocation1 : Represents a punishment revocation.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Revocation1 {
    /// The unique identifier of the revocation.
    #[serde(rename = "id")]
    pub id: u64,
    /// The reason the punishment was revoked.
    #[serde(rename = "reason")]
    pub reason: String,
    /// The ID of the actor who revoked the punishment.
    #[serde(rename = "actorId")]
    pub actor_id: uuid::Uuid,
    /// The date and time at which the punishment was revoked.
    #[serde(rename = "createdAt")]
    pub created_at: chrono::DateTime<chrono::FixedOffset>,
}

impl Revocation1 {
    /// Represents a punishment revocation.
    pub fn new(id: u64, reason: String, actor_id: uuid::Uuid, created_at: chrono::DateTime<chrono::FixedOffset>) -> Revocation1 {
        Revocation1 {
            id,
            reason,
            actor_id,
            created_at,
        }
    }
}