Struct json_ld::Context

source ·
pub struct Context<T, B, L, M> { /* private fields */ }
Expand description

JSON-LD context.

Implementations§

Create a new context with the given base IRI.

Returns a reference to the given term definition, if any.

Returns a reference to the given term normal definition, if any.

Returns a reference to the @type definition, if any.

Checks if the given term is defined.

Returns the original base URL of the context.

Returns the base IRI of the context.

Returns the @vocab value, if any.

Returns the default @language value.

Returns the default @direction value.

Returns a reference to the previous context.

Returns the number of terms defined.

Checks if no terms are defined.

Returns a handle to the term definitions.

Checks if the context has a protected definition.

Returns the inverse of this context.

Sets the normal definition for the given term key.

Sets the @type definition.

Sets the base IRI.

Sets the @vocab value.

Sets the default @language value.

Sets the default @direction value.

Sets the previous context.

Converts this context into its syntactic definition.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. Read more
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Wraps self inside a Meta<Self, M> using the given metadata. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.