Trait json_ld_context_processing::Process

source ·
pub trait Process {
    // Required method
    async fn process_full<N, L, W>(
        &self,
        vocabulary: &mut N,
        active_context: &Context<N::Iri, N::BlankId>,
        loader: &L,
        base_url: Option<N::Iri>,
        options: Options,
        warnings: W,
    ) -> Result<Processed<'_, N::Iri, N::BlankId>, Error>
       where N: VocabularyMut,
             N::Iri: Clone + Eq + Hash,
             N::BlankId: Clone + PartialEq,
             L: Loader,
             W: WarningHandler<N>;

    // Provided methods
    async fn process_with<N, L>(
        &self,
        vocabulary: &mut N,
        active_context: &Context<N::Iri, N::BlankId>,
        loader: &L,
        base_url: Option<N::Iri>,
        options: Options,
    ) -> Result<Processed<'_, N::Iri, N::BlankId>, Error>
       where N: VocabularyMut,
             N::Iri: Clone + Eq + Hash,
             N::BlankId: Clone + PartialEq,
             L: Loader { ... }
    async fn process<N, L>(
        &self,
        vocabulary: &mut N,
        loader: &L,
        base_url: Option<N::Iri>,
    ) -> Result<Processed<'_, N::Iri, N::BlankId>, Error>
       where N: VocabularyMut,
             N::Iri: Clone + Eq + Hash,
             N::BlankId: Clone + PartialEq,
             L: Loader { ... }
}

Required Methods§

source

async fn process_full<N, L, W>( &self, vocabulary: &mut N, active_context: &Context<N::Iri, N::BlankId>, loader: &L, base_url: Option<N::Iri>, options: Options, warnings: W, ) -> Result<Processed<'_, N::Iri, N::BlankId>, Error>
where N: VocabularyMut, N::Iri: Clone + Eq + Hash, N::BlankId: Clone + PartialEq, L: Loader, W: WarningHandler<N>,

Process the local context with specific options.

Provided Methods§

source

async fn process_with<N, L>( &self, vocabulary: &mut N, active_context: &Context<N::Iri, N::BlankId>, loader: &L, base_url: Option<N::Iri>, options: Options, ) -> Result<Processed<'_, N::Iri, N::BlankId>, Error>
where N: VocabularyMut, N::Iri: Clone + Eq + Hash, N::BlankId: Clone + PartialEq, L: Loader,

Process the local context with specific options.

source

async fn process<N, L>( &self, vocabulary: &mut N, loader: &L, base_url: Option<N::Iri>, ) -> Result<Processed<'_, N::Iri, N::BlankId>, Error>
where N: VocabularyMut, N::Iri: Clone + Eq + Hash, N::BlankId: Clone + PartialEq, L: Loader,

Process the local context with the given initial active context with the default options: is_remote is false, override_protected is false and propagate is true.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Process for Context

source§

async fn process_full<N, L, W>( &self, vocabulary: &mut N, active_context: &Context<N::Iri, N::BlankId>, loader: &L, base_url: Option<N::Iri>, options: Options, warnings: W, ) -> Result<Processed<'_, N::Iri, N::BlankId>, Error>
where N: VocabularyMut, N::Iri: Clone + Eq + Hash, N::BlankId: Clone + PartialEq, L: Loader, W: WarningHandler<N>,

Implementors§