pub enum RestrictionAction {
Block,
Other,
}Expand description
block vs. anything else. Mirrors Python’s RestrictionAction.
Variants§
Trait Implementations§
Source§impl Clone for RestrictionAction
impl Clone for RestrictionAction
Source§fn clone(&self) -> RestrictionAction
fn clone(&self) -> RestrictionAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RestrictionAction
Source§impl Debug for RestrictionAction
impl Debug for RestrictionAction
Source§impl<'de> Deserialize<'de> for RestrictionAction
impl<'de> Deserialize<'de> for RestrictionAction
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 RestrictionAction
Source§impl PartialEq for RestrictionAction
impl PartialEq for RestrictionAction
Source§impl Serialize for RestrictionAction
impl Serialize for RestrictionAction
impl StructuralPartialEq for RestrictionAction
Auto Trait Implementations§
impl Freeze for RestrictionAction
impl RefUnwindSafe for RestrictionAction
impl Send for RestrictionAction
impl Sync for RestrictionAction
impl Unpin for RestrictionAction
impl UnsafeUnpin for RestrictionAction
impl UnwindSafe for RestrictionAction
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