Skip to main content

Module loader

Module loader 

Source
Expand description

Document loaders.

Re-exports§

pub use chain::ChainLoader;
pub use dereference::Dereference;
pub use fs::FsLoader;
pub use none::NoLoader;
pub use self::reqwest::ReqwestLoader;reqwest

Modules§

chain
Loader combining two loaders, trying each in turn.
dereference
Invoking a loader from inside an algorithm, on sufficient native stack. Invoking the LoadDocumentCallback from inside an algorithm.
fs
Loader reading documents from the file system.
map
Loader serving documents from an in-memory map.
none
Loader that refuses every request.
reqwestreqwest
Simple document and context loader based on reqwest

Structs§

LoadError
Loading error: wraps the loader-specific error with the IRI we tried to load. Error raised while loading a remote document, with the URL that failed.
RemoteDocument
Remote document.

Enums§

ContextLoadError
Error raised while loading a remote context.
ExtractContextError
Context extraction error.
Profile
Value of the profile parameter of the application/ld+json media type.
RemoteDocumentReference
Remote document, loaded or not.
StandardProfile
Standard profile parameter values defined for the application/ld+json.

Constants§

JSON_MEDIA_TYPE
application/json media type.
LD_JSON_MEDIA_TYPE
application/ld+json media type.

Traits§

ExtractContext
Documents from which a JSON-LD context can be extracted.
Loader
Document loader.

Type Aliases§

LoadingResult
Result of loading a remote document.
RemoteContext
Remote document holding a context.
RemoteContextReference
Reference to a remote context, either inline or by URL.