psychologylib/jsonb/
interpretation.rs

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

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct Interpretation {
    pub id: Uuid,
    pub factor: Option<Vec<String>>,
    pub predicates: Option<Vec<Predicate>>,
    pub outcome: String,
    pub description: String,
    pub recommendation: String,
}