1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* 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,
}
}
}