Trait json_ld::Process

source ·
pub trait Process<T, B, M>: Send + Sync {
    type Stripped: Send + Sync;

    fn process_full<'l, 'a, N, L>(
        &'l self,
        vocabulary: &'a mut N,
        active_context: &'a Context<T, B, Self::Stripped, M>,
        loader: &'a mut L,
        base_url: Option<T>,
        options: Options,
        warnings: impl Send + WarningHandler<N, M> + 'a
    ) -> Pin<Box<dyn Future<Output = Result<Processed<'l, T, B, Self::Stripped, M>, Meta<Error<<L as ContextLoader<T, M>>::ContextError>, M>>> + Send + 'a, Global>>
    where
        'l: 'a,
        L: ContextLoader<T, M> + Send + Sync,
        N: Send + Sync + VocabularyMut<Iri = T, BlankId = B>,
        T: Clone + PartialEq<T> + Send + Sync,
        B: Clone + PartialEq<B> + Send + Sync,
        M: 'a + Clone + Send + Sync,
        <L as ContextLoader<T, M>>::Context: Into<Self::Stripped>
; fn process_with<'l, 'a, N, L>(
        &'l self,
        vocabulary: &'a mut N,
        active_context: &'a Context<T, B, Self::Stripped, M>,
        loader: &'a mut L,
        base_url: Option<T>,
        options: Options
    ) -> Pin<Box<dyn Future<Output = Result<Processed<'l, T, B, Self::Stripped, M>, Meta<Error<<L as ContextLoader<T, M>>::ContextError>, M>>> + Send + 'a, Global>>
    where
        'l: 'a,
        L: ContextLoader<T, M> + Send + Sync,
        N: Send + Sync + VocabularyMut<Iri = T, BlankId = B>,
        T: Clone + PartialEq<T> + Send + Sync,
        B: Clone + PartialEq<B> + Send + Sync,
        M: 'a + Clone + Send + Sync,
        <L as ContextLoader<T, M>>::Context: Into<Self::Stripped>
, { ... } fn process<'l, 'a, N, L>(
        &'l self,
        vocabulary: &'a mut N,
        loader: &'a mut L,
        base_url: Option<T>
    ) -> Pin<Box<dyn Future<Output = Result<Processed<'l, T, B, Self::Stripped, M>, Meta<Error<<L as ContextLoader<T, M>>::ContextError>, M>>> + Send + 'a, Global>>
    where
        'l: 'a,
        L: ContextLoader<T, M> + Send + Sync,
        N: Send + Sync + VocabularyMut<Iri = T, BlankId = B>,
        T: 'a + Clone + PartialEq<T> + Send + Sync,
        B: 'a + Clone + PartialEq<B> + Send + Sync,
        M: 'a + Clone + Send + Sync,
        <L as ContextLoader<T, M>>::Context: Into<Self::Stripped>
, { ... } }

Required Associated Types§

Required Methods§

Process the local context with specific options.

Provided Methods§

Process the local context with specific options.

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.

Implementations on Foreign Types§

Process the local context with specific options.

Implementors§