azisaba_graph/models/
create_punishment_proof_request.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct CreatePunishmentProofRequest {
16 #[serde(rename = "text")]
18 pub text: String,
19 #[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