pub struct FsLoader { /* 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 Loader for FsLoader
impl Loader for FsLoader
Source§async fn load(&self, url: &Iri) -> Result<RemoteDocument, LoadError>
async fn load(&self, url: &Iri) -> Result<RemoteDocument, LoadError>
Loads the document behind the given IRI.
Source§async fn load_with<V>(
&self,
vocabulary: &mut V,
url: <V as IriVocabulary>::Iri,
) -> Result<RemoteDocument<<V as IriVocabulary>::Iri>, LoadError>
async fn load_with<V>( &self, vocabulary: &mut V, url: <V as IriVocabulary>::Iri, ) -> Result<RemoteDocument<<V as IriVocabulary>::Iri>, LoadError>
Loads the document behind the given IRI, using the given vocabulary.
Auto Trait Implementations§
impl Freeze for FsLoader
impl RefUnwindSafe for FsLoader
impl Send for FsLoader
impl Sync for FsLoader
impl Unpin for FsLoader
impl UnwindSafe for FsLoader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more