pub trait Loader<I, M> {
    type Output;
    type Error;

    fn load_with<'a>(
        &'a mut self,
        vocabulary: &'a impl Sync + IriVocabulary<Iri = I>,
        url: I
    ) -> Pin<Box<dyn Future<Output = Result<RemoteDocument<I, M, Self::Output>, Self::Error>> + Send + 'a, Global>>
    where
        I: 'a
; fn load<'a>(
        &'a mut self,
        url: I
    ) -> Pin<Box<dyn Future<Output = Result<RemoteDocument<I, M, Self::Output>, Self::Error>> + Send + 'a, Global>>
    where
        I: 'a,
        (): IriVocabulary<Iri = I>
, { ... } }
Expand description

JSON document loader.

Required Associated Types

The type of documents that can be loaded.

Required Methods

Loads the document behind the given IRI, inside the given vocabulary.

Provided Methods

Loads the document behind the given IRI.

Implementors