Trait json_ld_core::object::TryFromJson

source ·
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§

source

fn try_from_json_in( vocabulary: &mut impl VocabularyMut<Iri = T, BlankId = B>, value: Value, ) -> Result<Self, InvalidExpandedJson>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T, B, V: Eq + Hash + TryFromJson<T, B>> TryFromJson<T, B> for IndexSet<V>

source§

fn try_from_json_in( vocabulary: &mut impl VocabularyMut<Iri = T, BlankId = B>, value: Value, ) -> Result<Self, InvalidExpandedJson>

source§

impl<T, B, V: TryFromJson<T, B>> TryFromJson<T, B> for Vec<V>

source§

fn try_from_json_in( vocabulary: &mut impl VocabularyMut<Iri = T, BlankId = B>, value: Value, ) -> Result<Self, InvalidExpandedJson>

Implementors§

source§

impl<I, B> TryFromJson<I, B> for Id<I, B>

source§

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

source§

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

source§

impl<T: Eq + Hash, B: Eq + Hash> TryFromJson<T, B> for ExpandedDocument<T, B>

source§

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

source§

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