Struct rust_releases_io::RetrievedDocument
source · pub struct RetrievedDocument { /* private fields */ }Expand description
A Document with added information about the its retrieval.
Implementations§
source§impl RetrievedDocument
impl RetrievedDocument
sourcepub fn new(document: Document, retrieval_location: RetrievalLocation) -> Self
pub fn new(document: Document, retrieval_location: RetrievalLocation) -> Self
Create a new RetrievedDocument from the Document and its retrieval location.
sourcepub fn into_document(self) -> Document
pub fn into_document(self) -> Document
Transforms the document into a buffer of bytes.
sourcepub fn retrieval_location(&self) -> &RetrievalLocation
pub fn retrieval_location(&self) -> &RetrievalLocation
Where the document data came from.
Trait Implementations§
source§impl Debug for RetrievedDocument
impl Debug for RetrievedDocument
source§impl PartialEq<RetrievedDocument> for RetrievedDocument
impl PartialEq<RetrievedDocument> for RetrievedDocument
source§fn eq(&self, other: &RetrievedDocument) -> bool
fn eq(&self, other: &RetrievedDocument) -> bool
This method tests for
self and other values to be equal, and is used
by ==.