pub struct LoadedDocument {
pub url: String,
pub content: Vec<u8>,
pub format: RdfFormat,
}
Expand description
A remote document fetched to support parsing.
This is mostly used to retrieve JSON-LD remote contexts.
Fields§
§url: String
Final URL of the remote document after possible redirections and normalizations.
content: Vec<u8>
Content of the document.
format: RdfFormat
Format of the document.
Auto Trait Implementations§
impl Freeze for LoadedDocument
impl RefUnwindSafe for LoadedDocument
impl Send for LoadedDocument
impl Sync for LoadedDocument
impl Unpin for LoadedDocument
impl UnwindSafe for LoadedDocument
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