oxrdfio/
document.rs

1use crate::RdfFormat;
2
3/// A remote document fetched to support parsing.
4///
5/// This is mostly used to retrieve JSON-LD remote contexts.
6pub struct LoadedDocument {
7    /// Final URL of the remote document after possible redirections and normalizations.
8    pub url: String,
9    /// Content of the document.
10    pub content: Vec<u8>,
11    /// Format of the document.
12    pub format: RdfFormat,
13}