Struct chromiumoxide_cdp::cdp::browser_protocol::fetch::EnableParams
source · pub struct EnableParams {
pub patterns: Option<Vec<RequestPattern>>,
pub handle_auth_requests: Option<bool>,
}
Expand description
Enables issuing of requestPaused events. A request will be paused until client calls one of failRequest, fulfillRequest or continueRequest/continueWithAuth. enable
Fields§
§patterns: Option<Vec<RequestPattern>>
If specified, only requests matching any of these patterns will produce fetchRequested event and will be paused until clients response. If not set, all requests will be affected.
handle_auth_requests: Option<bool>
If true, authRequired events will be issued and requests will be paused expecting a call to continueWithAuth.
Implementations§
source§impl EnableParams
impl EnableParams
pub fn builder() -> EnableParamsBuilder
source§impl EnableParams
impl EnableParams
pub const IDENTIFIER: &'static str = "Fetch.enable"
Trait Implementations§
source§impl Clone for EnableParams
impl Clone for EnableParams
source§fn clone(&self) -> EnableParams
fn clone(&self) -> EnableParams
Returns a copy 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 Command for EnableParams
impl Command for EnableParams
§type Response = EnableReturns
type Response = EnableReturns
The type of the response this request triggers on the chromium server
source§impl Debug for EnableParams
impl Debug for EnableParams
source§impl Default for EnableParams
impl Default for EnableParams
source§fn default() -> EnableParams
fn default() -> EnableParams
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for EnableParams
impl<'de> Deserialize<'de> for EnableParams
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 Method for EnableParams
impl Method for EnableParams
source§fn identifier(&self) -> MethodId
fn identifier(&self) -> MethodId
The whole string identifier for this method like:
DOM.removeNode
source§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
The name of the domain this method belongs to:
DOM
source§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
The standalone identifier of the method inside the domain:
removeNode
source§impl MethodType for EnableParams
impl MethodType for EnableParams
source§impl PartialEq for EnableParams
impl PartialEq for EnableParams
source§fn eq(&self, other: &EnableParams) -> bool
fn eq(&self, other: &EnableParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EnableParams
impl Serialize for EnableParams
impl StructuralPartialEq for EnableParams
Auto Trait Implementations§
impl RefUnwindSafe for EnableParams
impl Send for EnableParams
impl Sync for EnableParams
impl Unpin for EnableParams
impl UnwindSafe for EnableParams
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