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
/*
* 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};
/// Proof : Represents punishment evidence.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Proof {
/// The unique identifier of the proof.
#[serde(rename = "id")]
pub id: u64,
/// The proof content.
#[serde(rename = "text")]
pub text: String,
/// Whether the proof is publicly visible.
#[serde(rename = "public")]
pub public: bool,
}
impl Proof {
/// Represents punishment evidence.
pub fn new(id: u64, text: String, public: bool) -> Proof {
Proof {
id,
text,
public,
}
}
}