assignmentlib/jsonb/
by_question.rs

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

use crate::enums::status::Status;

#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct ByQuestion {
    pub id: Uuid,
    pub question: Uuid,
    pub comment: String,
    #[serde(default)]
    pub score: f32,
    pub status: Status,
}