Skip to main content

azisaba_graph/models/
create_punishment_proof_request.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct CreatePunishmentProofRequest {
16    /// The proof content.
17    #[serde(rename = "text")]
18    pub text: String,
19    /// Whether the proof is publicly visible.
20    #[serde(rename = "public")]
21    pub public: bool,
22}
23
24impl CreatePunishmentProofRequest {
25    pub fn new(text: String, public: bool) -> CreatePunishmentProofRequest {
26        CreatePunishmentProofRequest {
27            text,
28            public,
29        }
30    }
31}
32