[][src]Struct adblock::UrlSpecificResources

pub struct UrlSpecificResources {
    pub hide_selectors: HashSet<String>,
    pub style_selectors: HashMap<String, Vec<String>>,
    pub exceptions: HashSet<String>,
    pub injected_script: String,
}

Contains cosmetic filter information intended to be injected into a particular hostname.

Fields

hide_selectors: HashSet<String>

A set of any CSS selector on the page that should be hidden, i.e. styled as { display: none !important; }.

style_selectors: HashMap<String, Vec<String>>

A map of CSS selectors on the page to respective non-hide style rules, i.e. any required styles other than display: none.

exceptions: HashSet<String>

A set of any class or id CSS selectors that should not have generic rules applied.

injected_script: String

Javascript code for any scriptlets that should be injected into the page.

Trait Implementations

impl<'a> ExtractExt<'a> for &'a UrlSpecificResources[src]

impl<'a> ExtractExt<'a> for &'a mut UrlSpecificResources[src]

impl HasMethodsInventory for UrlSpecificResources[src]

type Methods = Pyo3MethodsInventoryForUrlSpecificResources

impl HasProtoRegistry for UrlSpecificResources[src]

impl Into<UrlSpecificResources> for RustUrlSpecificResources[src]

impl IntoPy<PyObject> for UrlSpecificResources[src]

impl PyClass for UrlSpecificResources[src]

type Dict = PyClassDummySlot

Specify this class has #[pyclass(dict)] or not.

type WeakRef = PyClassDummySlot

Specify this class has #[pyclass(weakref)] or not.

type BaseNativeType = PyAny

The closest native ancestor. This is PyAny by default, and when you declare #[pyclass(extends=PyDict)], it's PyDict. Read more

impl PyClassAlloc for UrlSpecificResources[src]

impl PyClassSend for UrlSpecificResources[src]

type ThreadChecker = ThreadCheckerStub<UrlSpecificResources>

impl<'p> PyObjectProtocol<'p> for UrlSpecificResources[src]

impl<'p> PyObjectReprProtocol<'p> for UrlSpecificResources[src]

impl PyTypeInfo for UrlSpecificResources[src]

type Type = UrlSpecificResources

Type of objects to store in PyObject struct

type BaseType = PyAny

Base class

type Layout = PyCell<Self>

Layout

type BaseLayout = PyCellBase<PyAny>

Layout of Basetype.

type Initializer = PyClassInitializer<Self>

Initializer for layout

type AsRefTarget = PyCell<Self>

Utility type to make AsPyRef work

Auto Trait Implementations

impl RefUnwindSafe for UrlSpecificResources

impl Send for UrlSpecificResources

impl Sync for UrlSpecificResources

impl Unpin for UrlSpecificResources

impl UnwindSafe for UrlSpecificResources

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FromPy<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> IntoPy<U> for T where
    U: FromPy<T>, 
[src]

impl<T> PyClassAlloc for T where
    T: PyTypeInfo + PyClassWithFreeList
[src]

impl<T> PyMethods for T where
    T: HasMethodsInventory, 
[src]

impl<T> PyProtoMethods for T where
    T: HasProtoRegistry, 
[src]

impl<T> PyTypeObject for T where
    T: PyTypeInfo
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.