#[repr(usize)]pub enum Namespace {
Show 16 variants
Main = 0,
MainTalk = 1,
User = 2,
UserTalk = 3,
Project = 4,
ProjectTalk = 5,
File = 6,
FileTalk = 7,
MediaWiki = 8,
MediaWikiTalk = 9,
Template = 10,
TemplateTalk = 11,
Help = 12,
HelpTalk = 13,
Category = 14,
CategoryTalk = 15,
}
Expand description
The 16 built-in namespaces (excluding two “virtual” namespaces) of MediaWiki
A namespace is a collection of pages which have content with a similar purposek, i. e. pages where the intended use is the same. Namespaces can be thought of as partitions of different types of information within the same wiki, and keep “real” content separate from user profiles, help pages, etc.
These are the 16 built-in “real” namespaces, meaning namespaces corresponding to actual pages. They each have a unique number (0 to 15) and are grouped in subject/talk pairs
Read more in the MediaWiki API docs
Variants§
Main = 0
MainTalk = 1
User = 2
UserTalk = 3
Project = 4
ProjectTalk = 5
File = 6
FileTalk = 7
MediaWiki = 8
MediaWikiTalk = 9
Template = 10
TemplateTalk = 11
Help = 12
HelpTalk = 13
Category = 14
CategoryTalk = 15
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Namespace
impl<'de> Deserialize<'de> for Namespace
Source§fn 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
impl Eq for Namespace
impl StructuralPartialEq for Namespace
Auto Trait Implementations§
impl Freeze for Namespace
impl RefUnwindSafe for Namespace
impl Send for Namespace
impl Sync for Namespace
impl Unpin for Namespace
impl UnwindSafe for Namespace
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.