Skip to main content

JsonLdContextDocument

Type Alias JsonLdContextDocument 

Source
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: JsonLdContextDocumentValue

The retrieved document.

Implementations§