Struct merino_wikipedia::domain::WikipediaDocument
source · [−]pub struct WikipediaDocument {
pub title: String,
pub page_text: String,
pub namespace: WikipediaNamespace,
pub page_id: u32,
}
Expand description
A page on Wikipedia. This type is a partial
Fields
title: String
The human readable title of the page.
page_text: String
The contents of the page, in Wikitext.
namespace: WikipediaNamespace
The Wikipedia namespace of the page.
page_id: u32
The Wikipedia ID for this page. It is expected that if two pages have the same page_id, they are the same page, with possible edits.
Trait Implementations
sourceimpl Clone for WikipediaDocument
impl Clone for WikipediaDocument
sourcefn clone(&self) -> WikipediaDocument
fn clone(&self) -> WikipediaDocument
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WikipediaDocument
impl Debug for WikipediaDocument
sourceimpl<'de> Deserialize<'de> for WikipediaDocument
impl<'de> Deserialize<'de> for WikipediaDocument
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl HelperIndexable for WikipediaDocument
impl HelperIndexable for WikipediaDocument
sourcefn doc_id(&self) -> String
fn doc_id(&self) -> String
The ID that this document should be indexed under. Two documents with the same ID are considered to be semantically equivalent. If a document with the given ID is already present in the search index, it will be overridden if another document with the same ID is added. Read more
sourceimpl Serialize for WikipediaDocument
impl Serialize for WikipediaDocument
Auto Trait Implementations
impl RefUnwindSafe for WikipediaDocument
impl Send for WikipediaDocument
impl Sync for WikipediaDocument
impl Unpin for WikipediaDocument
impl UnwindSafe for WikipediaDocument
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more