Trait json_ld::TryFromJson

source ·
pub trait TryFromJson<T, B, M>: Sized {
    // Required method
    fn try_from_json_in(
        vocabulary: &mut impl VocabularyMut<Iri = T, BlankId = B>,
        value: Meta<Value<M>, M>
    ) -> Result<Meta<Self, M>, Meta<InvalidExpandedJson<M>, M>>;
}
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: Meta<Value<M>, M> ) -> Result<Meta<Self, M>, Meta<InvalidExpandedJson<M>, M>>

Implementations on Foreign Types§

source§

impl<T, B, M, V> TryFromJson<T, B, M> for Stripped<V>where V: TryFromJson<T, B, M>,

source§

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

source§

impl<T, B, M, V> TryFromJson<T, B, M> for Vec<Meta<V, M>, Global>where V: TryFromJson<T, B, M>,

source§

fn try_from_json_in( vocabulary: &mut impl VocabularyMut<Iri = T, BlankId = B>, _: Meta<Value<M>, M> ) -> Result<Meta<Vec<Meta<V, M>, Global>, M>, Meta<InvalidExpandedJson<M>, M>>

source§

impl<T, B, M, V> TryFromJson<T, B, M> for HashSet<Stripped<Meta<V, M>>, RandomState>where V: StrippedEq + StrippedHash + TryFromJson<T, B, M>,

source§

fn try_from_json_in( vocabulary: &mut impl VocabularyMut<Iri = T, BlankId = B>, _: Meta<Value<M>, M> ) -> Result<Meta<HashSet<Stripped<Meta<V, M>>, RandomState>, M>, Meta<InvalidExpandedJson<M>, M>>

Implementors§

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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