Skip to main content

ExtractContext

Trait ExtractContext 

Source
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§

Source

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".

Implementations on Foreign Types§

Source§

impl ExtractContext for Value

Implementors§