pub struct ODRL_CONTEXT_DOCUMENT { /* private fields */ }Methods from Deref<Target = RemoteDocument>§
Sourcepub fn url(&self) -> Option<&I>
pub fn url(&self) -> Option<&I>
Returns a reference to the final URL of the loaded document, after eventual redirection.
Sourcepub fn content_type(&self) -> Option<&Mime>
pub fn content_type(&self) -> Option<&Mime>
Returns the HTTP Content-Type header value of the loaded document,
exclusive of any optional parameters.
Sourcepub fn context_url(&self) -> Option<&I>
pub fn context_url(&self) -> Option<&I>
Returns 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 any.
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.
Trait Implementations§
Source§impl Deref for ODRL_CONTEXT_DOCUMENT
impl Deref for ODRL_CONTEXT_DOCUMENT
Source§type Target = RemoteDocument
type Target = RemoteDocument
The resulting type after dereferencing.
Source§fn deref(&self) -> &RemoteDocument
fn deref(&self) -> &RemoteDocument
Dereferences the value.
impl LazyStatic for ODRL_CONTEXT_DOCUMENT
Auto Trait Implementations§
impl Freeze for ODRL_CONTEXT_DOCUMENT
impl RefUnwindSafe for ODRL_CONTEXT_DOCUMENT
impl Send for ODRL_CONTEXT_DOCUMENT
impl Sync for ODRL_CONTEXT_DOCUMENT
impl Unpin for ODRL_CONTEXT_DOCUMENT
impl UnwindSafe for ODRL_CONTEXT_DOCUMENT
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more