pub trait TryFromJson<T, B>: Sized {
// Required method
fn try_from_json_in(
vocabulary: &mut impl VocabularyMut<Iri = T, BlankId = B>,
value: Value,
) -> Result<Self, InvalidExpandedJson>;
}
Expand description
Try to convert from a JSON value directly into an expanded JSON-LD document without going through the expansion algorithm.
The input JSON value must be in expanded JSON-LD form.
Required Methods§
fn try_from_json_in( vocabulary: &mut impl VocabularyMut<Iri = T, BlankId = B>, value: Value, ) -> Result<Self, InvalidExpandedJson>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.