Function json_ld::context::define [−][src]
pub fn define<'a, T: Send + Sync + Id, C: Send + Sync + ContextMut<T>, L: Send + Sync + Loader>(
active_context: &'a mut C,
local_context: &'a JsonObject,
term: &'a str,
defined: &'a mut HashMap<String, bool>,
remote_contexts: ProcessingStack,
loader: &'a mut L,
base_url: Option<Iri<'a>>,
protected: bool,
options: ProcessingOptions
) -> BoxFuture<'a, Result<(), Error>> where
C::LocalContext: Send + Sync + From<L::Output> + From<JsonValue>,
L::Output: Into<JsonValue>,
Expand description
Follows the https://www.w3.org/TR/json-ld11-api/#create-term-definition
algorithm.
Default value for base_url
is None
. Default values for protected
and override_protected
are false
.