Struct json_ld_core::loader::fs::FsLoader
source · pub struct FsLoader<I = Index, M = Location<I>, T = Value<M>, E = MetaError<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.
Implementations
Trait Implementations
sourceimpl<I: Clone> Default for FsLoader<I, Location<I>, Value<Location<I>>, MetaError<Location<I>>>
impl<I: Clone> Default for FsLoader<I, Location<I>, Value<Location<I>>, MetaError<Location<I>>>
sourceimpl<I: Clone + Eq + Hash + Send, T: Clone + Send, M: Clone + Send, E> Loader<I, M> for FsLoader<I, M, T, E>
impl<I: Clone + Eq + Hash + Send, T: Clone + Send, M: Clone + Send, E> Loader<I, M> for FsLoader<I, M, T, E>
type Output = T
type Output = T
The type of documents that can be loaded.
type Error = Error<E>
sourcefn load_with<'a>(
&'a mut self,
vocabulary: &'a impl Sync + IriVocabulary<Iri = I>,
url: I
) -> BoxFuture<'a, Result<RemoteDocument<I, M, T>, Self::Error>>where
I: 'a,
fn load_with<'a>(
&'a mut self,
vocabulary: &'a impl Sync + IriVocabulary<Iri = I>,
url: I
) -> BoxFuture<'a, Result<RemoteDocument<I, M, T>, Self::Error>>where
I: 'a,
Loads the document behind the given IRI, inside the given vocabulary.
Auto Trait Implementations
impl<I = Index, M = Location<I, Span>, T = Value<M>, E = Meta<Error<M, Infallible>, M>> !RefUnwindSafe for FsLoader<I, M, T, E>
impl<I, M, T, E> Send for FsLoader<I, M, T, E>where
I: Send,
M: Send,
T: Send,
impl<I, M, T, E> Sync for FsLoader<I, M, T, E>where
I: Sync,
M: Sync,
T: Sync,
impl<I, M, T, E> Unpin for FsLoader<I, M, T, E>where
I: Unpin,
M: Unpin,
T: Unpin,
impl<I = Index, M = Location<I, Span>, T = Value<M>, E = Meta<Error<M, Infallible>, M>> !UnwindSafe for FsLoader<I, M, T, E>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more