did_utils/ldmodel.rs
1use serde::{Deserialize, Serialize};
2use serde_json::Value;
3
4/// Represents the JSON-LD context.
5#[derive(Serialize, Debug, Clone, PartialEq, Deserialize)]
6#[serde(untagged)]
7// The @context property defines the vocabulary used in the JSON-LD document.
8// It provides a way to map the keys in the JSON structure to specific terms,
9// properties, and classes from external vocabularies.
10pub enum Context {
11 SingleString(String),
12 SetOfString(Vec<String>),
13 JsonObject(Value),
14}