pub struct SetBlockedURLsParams {
pub urlPatterns: Option<Vec<BlockPattern>>,
pub urls: Option<Vec<String>>,
}Expand description
Blocks URLs from loading.
Fields§
§urlPatterns: 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.
Trait Implementations§
Source§impl Clone for SetBlockedURLsParams
impl Clone for SetBlockedURLsParams
Source§fn clone(&self) -> SetBlockedURLsParams
fn clone(&self) -> SetBlockedURLsParams
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 SetBlockedURLsParams
impl Debug for SetBlockedURLsParams
Source§impl Default for SetBlockedURLsParams
impl Default for SetBlockedURLsParams
Source§fn default() -> SetBlockedURLsParams
fn default() -> SetBlockedURLsParams
Returns the “default value” for a type. Read more
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
Auto Trait Implementations§
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