pub enum WikipediaNamespace {
Show 30 variants
Article,
ArticleTalk,
User,
UserTalk,
Wikipedia,
WikipediaTalk,
File,
FileTalk,
MediaWiki,
MediaWikiTalk,
Template,
TemplateTalk,
Help,
HelpTalk,
Category,
CategoryTalk,
Portal,
PortalTalk,
Draft,
DraftTalk,
TimedText,
TimedTextTalk,
Module,
ModuleTalk,
Gadget,
GadgetTalk,
GadgetDefinition,
GadgetDefinitionTalk,
Special,
Media,
}
Expand description
The namespace of a Wikipedia page. Included here for completeness, but all of the content we are interested are likely in namespace 0, Articles. This will be included in the Wikipedia data that we have access to, and is important to disambiguate page IDs.
Variants
Article
ArticleTalk
User
UserTalk
Wikipedia
WikipediaTalk
File
FileTalk
MediaWiki
MediaWikiTalk
Template
TemplateTalk
Help
HelpTalk
Category
CategoryTalk
Portal
PortalTalk
Draft
DraftTalk
TimedText
TimedTextTalk
Module
ModuleTalk
Gadget
GadgetTalk
GadgetDefinition
GadgetDefinitionTalk
Special
Media
Trait Implementations
sourceimpl Clone for WikipediaNamespace
impl Clone for WikipediaNamespace
sourcefn clone(&self) -> WikipediaNamespace
fn clone(&self) -> WikipediaNamespace
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 WikipediaNamespace
impl Debug for WikipediaNamespace
sourceimpl From<WikipediaNamespace> for i32
impl From<WikipediaNamespace> for i32
sourcefn from(ns: WikipediaNamespace) -> Self
fn from(ns: WikipediaNamespace) -> Self
Converts to this type from the input type.
sourceimpl TryFrom<i32> for WikipediaNamespace
impl TryFrom<i32> for WikipediaNamespace
impl Copy for WikipediaNamespace
Auto Trait Implementations
impl RefUnwindSafe for WikipediaNamespace
impl Send for WikipediaNamespace
impl Sync for WikipediaNamespace
impl Unpin for WikipediaNamespace
impl UnwindSafe for WikipediaNamespace
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