pub trait ExtractContext {
// Required method
fn into_ld_context(self) -> Result<Context, ExtractContextError>;
}Expand description
Documents from which a JSON-LD context can be extracted.
Required Methods§
Sourcefn into_ld_context(self) -> Result<Context, ExtractContextError>
fn into_ld_context(self) -> Result<Context, ExtractContextError>
Consumes this ExtractContext, returning its LD context.
§Errors
Returns an error when the document is not an object, or has no @context entry.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".