pub enum ProtectionLevel<'a> {
Autoconfirmed,
ExtendedConfirmed,
Sysop,
TemplateEditor,
EditProtected,
EditSemiProtected,
None,
Other(&'a str),
}
Expand description
Represents the
pr_level
field of the page_restrictions
table, the group that is allowed
to perform the action.
Variants§
Autoconfirmed
ExtendedConfirmed
Sysop
TemplateEditor
EditProtected
EditSemiProtected
None
The result of parsing the empty string after the =
in 'move=:edit='
.
Other(&'a str)
Trait Implementations§
Source§impl<'a> Clone for ProtectionLevel<'a>
impl<'a> Clone for ProtectionLevel<'a>
Source§fn clone(&self) -> ProtectionLevel<'a>
fn clone(&self) -> ProtectionLevel<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for ProtectionLevel<'a>
impl<'a> Debug for ProtectionLevel<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for ProtectionLevel<'a>
impl<'de: 'a, 'a> Deserialize<'de> for ProtectionLevel<'a>
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
Source§impl<'a> From<&'a str> for ProtectionLevel<'a>
impl<'a> From<&'a str> for ProtectionLevel<'a>
Source§impl<'a> From<ProtectionLevel<'a>> for &'a str
impl<'a> From<ProtectionLevel<'a>> for &'a str
Source§fn from(p: ProtectionLevel<'a>) -> &'a str
fn from(p: ProtectionLevel<'a>) -> &'a str
Converts to this type from the input type.
Source§impl<'a> FromSql<'a> for ProtectionLevel<'a>
impl<'a> FromSql<'a> for ProtectionLevel<'a>
Source§impl<'a> Hash for ProtectionLevel<'a>
impl<'a> Hash for ProtectionLevel<'a>
Source§impl<'a> Ord for ProtectionLevel<'a>
impl<'a> Ord for ProtectionLevel<'a>
Source§fn cmp(&self, other: &ProtectionLevel<'a>) -> Ordering
fn cmp(&self, other: &ProtectionLevel<'a>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialEq for ProtectionLevel<'a>
impl<'a> PartialEq for ProtectionLevel<'a>
Source§impl<'a> PartialOrd for ProtectionLevel<'a>
impl<'a> PartialOrd for ProtectionLevel<'a>
Source§impl<'a> Serialize for ProtectionLevel<'a>
impl<'a> Serialize for ProtectionLevel<'a>
impl<'a> Copy for ProtectionLevel<'a>
impl<'a> Eq for ProtectionLevel<'a>
impl<'a> StructuralPartialEq for ProtectionLevel<'a>
Auto Trait Implementations§
impl<'a> Freeze for ProtectionLevel<'a>
impl<'a> RefUnwindSafe for ProtectionLevel<'a>
impl<'a> Send for ProtectionLevel<'a>
impl<'a> Sync for ProtectionLevel<'a>
impl<'a> Unpin for ProtectionLevel<'a>
impl<'a> UnwindSafe for ProtectionLevel<'a>
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