pub struct BlockPattern {
pub urlPattern: String,
pub block: bool,
}Fields§
§urlPattern: StringURL pattern to match. Patterns use the URLPattern constructor string syntax (https://urlpattern.spec.whatwg.org/) and must be absolute. Example: ‘://:/.css’.
block: boolWhether or not to block the pattern. If false, a matching request will not be blocked even if it matches a later ‘BlockPattern’.
Trait Implementations§
Source§impl Clone for BlockPattern
impl Clone for BlockPattern
Source§fn clone(&self) -> BlockPattern
fn clone(&self) -> BlockPattern
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 Debug for BlockPattern
impl Debug for BlockPattern
Source§impl Default for BlockPattern
impl Default for BlockPattern
Source§fn default() -> BlockPattern
fn default() -> BlockPattern
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BlockPattern
impl<'de> Deserialize<'de> for BlockPattern
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
Auto Trait Implementations§
impl Freeze for BlockPattern
impl RefUnwindSafe for BlockPattern
impl Send for BlockPattern
impl Sync for BlockPattern
impl Unpin for BlockPattern
impl UnsafeUnpin for BlockPattern
impl UnwindSafe for BlockPattern
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