Trait TryFromJsonObject

Source
pub trait TryFromJsonObject<T, B>: Sized {
    // Required method
    fn try_from_json_object_in(
        vocabulary: &mut impl VocabularyMut<Iri = T, BlankId = B>,
        object: Object,
    ) -> Result<Self, InvalidExpandedJson>;
}
Expand description

Try to convert from a JSON object directly into an expanded JSON-LD object without going through the expansion algorithm.

The input JSON object must be in expanded JSON-LD form.

Required Methods§

Source

fn try_from_json_object_in( vocabulary: &mut impl VocabularyMut<Iri = T, BlankId = B>, object: Object, ) -> 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.

Implementors§

Source§

impl<T, B, O: TryFromJsonObject<T, B>> TryFromJsonObject<T, B> for Indexed<O>

Source§

impl<T: Eq + Hash, B: Eq + Hash> TryFromJsonObject<T, B> for Object<T, B>

Source§

impl<T: Eq + Hash, B: Eq + Hash> TryFromJsonObject<T, B> for Properties<T, B>

Source§

impl<T: Eq + Hash, B: Eq + Hash> TryFromJsonObject<T, B> for ReverseProperties<T, B>

Source§

impl<T: Eq + Hash, B: Eq + Hash> TryFromJsonObject<T, B> for Node<T, B>