Function json_ld_serialization::serialize_object_with
source ยท pub fn serialize_object_with<I, V, T>(
vocabulary: &mut V,
interpretation: &mut I,
value: &T,
) -> Result<Object<V::Iri, V::BlankId>, Error>where
V: Vocabulary + IriVocabularyMut,
V::Iri: Clone + Eq + Hash,
V::BlankId: Clone + Eq + Hash,
I: ReverseIriInterpretation<Iri = V::Iri> + ReverseBlankIdInterpretation<BlankId = V::BlankId> + ReverseLiteralInterpretation<Literal = V::Literal>,
T: ?Sized + LinkedDataResource<I, V> + LinkedDataSubject<I, V>,
Expand description
Serialize the given Linked-Data value into a JSON-LD object using a custom vocabulary and interpretation.