pub enum PageAction<'a> {
Edit,
Move,
Reply,
Upload,
All,
Other(&'a str),
}
Expand description
Represents the
pr_type
field of the page_restrictions
table, the action that is restricted.
Variants§
Trait Implementations§
Source§impl<'a> Clone for PageAction<'a>
impl<'a> Clone for PageAction<'a>
Source§fn clone(&self) -> PageAction<'a>
fn clone(&self) -> PageAction<'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 PageAction<'a>
impl<'a> Debug for PageAction<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for PageAction<'a>
impl<'de: 'a, 'a> Deserialize<'de> for PageAction<'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 PageAction<'a>
impl<'a> From<&'a str> for PageAction<'a>
Source§impl<'a> From<PageAction<'a>> for &'a str
impl<'a> From<PageAction<'a>> for &'a str
Source§fn from(p: PageAction<'a>) -> Self
fn from(p: PageAction<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Hash for PageAction<'a>
impl<'a> Hash for PageAction<'a>
Source§impl<'a> Ord for PageAction<'a>
impl<'a> Ord for PageAction<'a>
Source§fn cmp(&self, other: &PageAction<'a>) -> Ordering
fn cmp(&self, other: &PageAction<'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 PageAction<'a>
impl<'a> PartialEq for PageAction<'a>
Source§impl<'a> PartialOrd for PageAction<'a>
impl<'a> PartialOrd for PageAction<'a>
Source§impl<'a> Serialize for PageAction<'a>
impl<'a> Serialize for PageAction<'a>
impl<'a> Copy for PageAction<'a>
impl<'a> Eq for PageAction<'a>
impl<'a> StructuralPartialEq for PageAction<'a>
Auto Trait Implementations§
impl<'a> Freeze for PageAction<'a>
impl<'a> RefUnwindSafe for PageAction<'a>
impl<'a> Send for PageAction<'a>
impl<'a> Sync for PageAction<'a>
impl<'a> Unpin for PageAction<'a>
impl<'a> UnwindSafe for PageAction<'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