competitionlib/jsonb/
result.rs

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

use crate::enums::action_type::ActionType;

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct ResultGame {
    pub id: Uuid,
    pub name: String,
    pub comment: Option<String>,
    pub time: NaiveDateTime,
    pub person: Option<Uuid>,
    pub participant: Option<Uuid>,
    pub action: ActionType,//todo enum
    pub details: serde_json::Value,

}