pub type JsonLdContextDocument = JsonLdDocument<JsonLdContextDocumentValue>;Aliased Type§
pub struct JsonLdContextDocument {
pub url: Option<IriBuf>,
pub content_type: Option<Mime>,
pub context_url: Option<IriBuf>,
pub profile: HashSet<JsonLdProfile>,
pub source: Option<JsonLdSourceCode>,
pub document: JsonLdContextDocumentValue,
}Fields§
§url: Option<IriBuf>The final URL of the loaded document, after eventual redirection.
content_type: Option<Mime>The HTTP Content-Type header value of the loaded document, exclusive
of any optional parameters.
context_url: Option<IriBuf>If available, the value of the HTTP Link Header RFC 8288 using the
http://www.w3.org/ns/json-ld#context link relation in the response.
If the response’s Content-Type is application/ld+json, the HTTP
Link Header is ignored. If multiple HTTP Link Headers using the
http://www.w3.org/ns/json-ld#context link relation are found, the
loader fails with a multiple context link headers error.
profile: HashSet<JsonLdProfile>§source: Option<JsonLdSourceCode>§document: JsonLdContextDocumentValueThe retrieved document.
Implementations§
Source§impl JsonLdContextDocument
impl JsonLdContextDocument
Sourcepub async fn process(
&self,
env: impl AsyncJsonLdEnvironment,
) -> Result<JsonLdProcessedContext<'_>, JsonLdLocatedError>
pub async fn process( &self, env: impl AsyncJsonLdEnvironment, ) -> Result<JsonLdProcessedContext<'_>, JsonLdLocatedError>
Process this context with the default options.
See: https://www.w3.org/TR/json-ld11-api/#context-processing-algorithm