standardlib/dto/
v09_json_format.rs
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,
}