pub enum RuleTypes {
All,
NetworkOnly,
CosmeticOnly,
}
Expand description
Specifies rule types to keep during parsing.
Variants§
Implementations§
source§impl RuleTypes
impl RuleTypes
pub fn loads_network_rules(&self) -> bool
pub fn loads_cosmetic_rules(&self) -> bool
Trait Implementations§
source§impl<'de> Deserialize<'de> for RuleTypes
impl<'de> Deserialize<'de> for RuleTypes
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 Copy for RuleTypes
Auto Trait Implementations§
impl Freeze for RuleTypes
impl RefUnwindSafe for RuleTypes
impl Send for RuleTypes
impl Sync for RuleTypes
impl Unpin for RuleTypes
impl UnwindSafe for RuleTypes
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