#[derive(Debug, Default)]
pub struct ContainerIr {
pub type_iri: Option<String>,
pub fragment: bool,
pub prefixes: Vec<(String, String)>,
pub debug: bool,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum Coerce {
Id,
Vocab,
Json,
Datatype(String),
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum ContainerKind {
List,
Set,
Language,
Index,
Id,
Type,
Graph,
}
#[derive(Debug, Default)]
pub struct FieldIr {
pub is_id: bool,
pub is_type_value: bool,
pub skip: bool,
pub property: Option<String>,
pub coerce: Option<Coerce>,
pub container: Option<ContainerKind>,
pub nested: bool,
pub is_vec: bool,
pub flatten: bool,
pub flatten_map: bool,
pub passthrough: bool,
}