pub struct FsLoader<I = Index, M = Location<I, Span>, T = Value<M>, E = Meta<Error<M, Infallible>, M>> { /* private fields */ }
Expand description
File-system loader.
This is a special JSON-LD document loader that can load document from the file system by attaching a directory to specific URLs.
Loaded documents are not cached: a new file system read is made each time an URL is loaded even if it has already been queried before.
Implementations§
Trait Implementations§
source§impl<I> Default for FsLoader<I, Location<I, Span>, Value<Location<I, Span>>, Meta<Error<Location<I, Span>, Infallible>, Location<I, Span>>>where
I: Clone,
impl<I> Default for FsLoader<I, Location<I, Span>, Value<Location<I, Span>>, Meta<Error<Location<I, Span>, Infallible>, Location<I, Span>>>where
I: Clone,
source§impl<I, T, M, E> Loader<I, M> for FsLoader<I, M, T, E>where
I: Send,
T: Send,
M: Send,
impl<I, T, M, E> Loader<I, M> for FsLoader<I, M, T, E>where
I: Send,
T: Send,
M: Send,
source§fn load_with<'a>(
&'a mut self,
vocabulary: &'a mut impl Sync + Send + IriVocabulary<Iri = I>,
url: I
) -> Pin<Box<dyn Future<Output = Result<RemoteDocument<I, M, T>, <FsLoader<I, M, T, E> as Loader<I, M>>::Error>> + Send + 'a, Global>>where
I: 'a,
fn load_with<'a>(
&'a mut self,
vocabulary: &'a mut impl Sync + Send + IriVocabulary<Iri = I>,
url: I
) -> Pin<Box<dyn Future<Output = Result<RemoteDocument<I, M, T>, <FsLoader<I, M, T, E> as Loader<I, M>>::Error>> + Send + 'a, Global>>where
I: 'a,
Loads the document behind the given IRI, using the given vocabulary.