standardlib/dto/
v09_json_format.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct V09JsonFormat {
    #[serde(rename = "@id")]
    pub id: String,
    #[serde(rename = "http://purl.org/ASN/schema/core/statementLabel")]
    pub statement_label: Option<Vec<LanguageValue>>,
    #[serde(rename = "http://purl.org/ASN/schema/core/statementNotation")]
    pub statement_notation: Option<Vec<LanguageValue>>,
    #[serde(rename = "http://purl.org/dc/terms/title")]
    pub title: Option<Vec<LanguageValue>>,
    #[serde(rename = "http://purl.org/dc/terms/description")]
    pub description: Option<Vec<LanguageValue>>,
    #[serde(rename = "http://purl.org/gem/qualifiers/isChildOf")]
    pub parent: Option<Vec<Id>>,
    #[serde(rename = "http://purl.org/ASN/schema/core/skillEmbodied")]
    pub gcs: Option<Vec<Id>>,
    #[serde(rename = "http://purl.org/ASN/schema/core/crossSubjectReference")]
    pub ccps: Option<Vec<Id>>,
}

#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct CCPFormat {
    #[serde(rename = "@graph")]
    pub graph: Vec<V09JsonFormat>,
}

#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct LanguageValue {
    #[serde(rename = "@value")]
    pub value: Option<String>,
}

#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Subject {
    pub id: String,
    pub name: String,
}

#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Id {
    #[serde(rename = "@id")]
    pub id: String,
}