pub struct SetBlockedUrLsParams {
pub url_patterns: Option<Vec<BlockPattern>>,
pub urls: Option<Vec<String>>,
}Expand description
Blocks URLs from loading.
Experimental: may change without notice.
Parameters of Network.setBlockedURLs.
Fields§
§url_patterns: Option<Vec<BlockPattern>>Patterns to match in the order in which they are given. These patterns
also take precedence over any wildcard patterns defined in urls.
urls: Option<Vec<String>>URL patterns to block. Wildcards (‘*’) are allowed.
Deprecated in the protocol.
Trait Implementations§
Source§impl Clone for SetBlockedUrLsParams
impl Clone for SetBlockedUrLsParams
Source§impl Command for SetBlockedUrLsParams
impl Command for SetBlockedUrLsParams
Source§impl Debug for SetBlockedUrLsParams
impl Debug for SetBlockedUrLsParams
Source§impl Default for SetBlockedUrLsParams
impl Default for SetBlockedUrLsParams
Source§impl<'de> Deserialize<'de> for SetBlockedUrLsParams
impl<'de> Deserialize<'de> for SetBlockedUrLsParams
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 PartialEq for SetBlockedUrLsParams
impl PartialEq for SetBlockedUrLsParams
Source§impl Serialize for SetBlockedUrLsParams
impl Serialize for SetBlockedUrLsParams
impl StructuralPartialEq for SetBlockedUrLsParams
Auto Trait Implementations§
impl Forget for SetBlockedUrLsParams
impl Freeze for SetBlockedUrLsParams
impl RefUnwindSafe for SetBlockedUrLsParams
impl Send for SetBlockedUrLsParams
impl Sync for SetBlockedUrLsParams
impl Unpin for SetBlockedUrLsParams
impl UnsafeUnpin for SetBlockedUrLsParams
impl UnwindSafe for SetBlockedUrLsParams
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