intramurallib/dto/
badge_request.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};
use serde_json;
use uuid::Uuid;

#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(rename_all = "camelCase")]
pub struct BadgeRequest {
    pub id: Option<Uuid>,
    pub organization: Uuid,
    pub status: String,
    pub name: String,
    pub data: serde_json::Value,
    pub available_below: Uuid,
    pub author: Uuid,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub parent: Option<Uuid>,
}