use thiserror::Error;
pub mod v3_1;
pub trait ToJsonValue {
type Error;
fn to_json_value(&self) -> Result<String, Self::Error>;
}
pub trait ToJsonMetamodel {
type Error;
fn to_json_metamodel(&self) -> Result<String, Self::Error>;
}
#[derive(Debug, Error)]
pub enum MetamodelError {
#[error(transparent)]
FailedDeserialisation(serde_json::Error),
#[error(transparent)]
FailedSerialisation(serde_json::Error),
#[error("Struct does not support json metamodel")]
MetamodelNotSupported,
#[error("Struct does not support json value format")]
ValueFormatNotSupported,
}