pub trait ExtractContext<M>: Sized {
    type Context;
    type Error;

    fn extract_context(
        value: Meta<Self, M>
    ) -> Result<Meta<Self::Context, M>, Self::Error>; }
Expand description

Context extraction method.

Implemented by documents containing a JSON-LD context definition, providing a method to extract this context.

Required Associated Types§

Context definition type.

Error type.

May be raised if the inner context is missing or invalid.

Required Methods§

Extract the context definition.

Implementations on Foreign Types§

Implementors§