Struct cdp::network::SetRequestInterceptionEnabledCommand
[−]
[src]
pub struct SetRequestInterceptionEnabledCommand<'a> { pub enabled: bool, pub patterns: Option<Vec<Cow<'a, str>>>, }
[Experimental] Sets the requests to intercept that match a the provided patterns.
Command Network.setRequestInterceptionEnabled
Domain Module: cdp::network
Command Struct: cdp::network::SetRequestInterceptionEnabledCommand
Response Struct: cdp::network::SetRequestInterceptionEnabledResponse
Fields
enabled: bool
Whether requests should be intercepted. If patterns is not set, matches all and resets any previously set patterns. Other parameters are ignored if false.
patterns: Option<Vec<Cow<'a, str>>>
URLs matching any of these patterns will be forwarded and wait for the corresponding continueInterceptedRequest call. Wildcards ('*' -> zero or more, '?' -> exactly one) are allowed. Escape character is backslash. If omitted equivalent to ['*'] (intercept all).
Trait Implementations
impl<'a> Clone for SetRequestInterceptionEnabledCommand<'a>
[src]
fn clone(&self) -> SetRequestInterceptionEnabledCommand<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Debug for SetRequestInterceptionEnabledCommand<'a>
[src]
impl<'a> PartialEq for SetRequestInterceptionEnabledCommand<'a>
[src]
fn eq(&self, __arg_0: &SetRequestInterceptionEnabledCommand<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SetRequestInterceptionEnabledCommand<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> CdpCommand for SetRequestInterceptionEnabledCommand<'a>
[src]
const COMMAND_NAME: &'static str
COMMAND_NAME: &'static str = "Network.setRequestInterceptionEnabled"
impl<'a> SerializeCdpCommand for SetRequestInterceptionEnabledCommand<'a>
[src]
fn command_name(&self) -> &str
[src]
fn serialize_command_params<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
impl<'de, 'a> DeserializeCdpCommand<'de> for SetRequestInterceptionEnabledCommand<'a>
[src]
fn deserialize_command<D>(
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,
[src]
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,