Skip to main content

azisaba_graph/models/
proof.rs

1/*
2 * Azisaba Graph API
3 *
4 * An API for connecting and sharing data across the Azisaba Network.
5 *
6 * The version of the OpenAPI document: 0.0.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Proof : Represents punishment evidence.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Proof {
17    /// The unique identifier of the proof.
18    #[serde(rename = "id")]
19    pub id: u64,
20    /// The proof content.
21    #[serde(rename = "text")]
22    pub text: String,
23    /// Whether the proof is publicly visible.
24    #[serde(rename = "public")]
25    pub public: bool,
26}
27
28impl Proof {
29    /// Represents punishment evidence.
30    pub fn new(id: u64, text: String, public: bool) -> Proof {
31        Proof {
32            id,
33            text,
34            public,
35        }
36    }
37}
38