pub struct Enable {
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.
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.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Enable
impl<'de> Deserialize<'de> for Enable
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 Enable
impl Method for Enable
const NAME: &'static str = "Fetch.enable"
type ReturnObject = EnableReturnObject
fn to_method_call(self, call_id: CallId) -> MethodCall<Self>where
Self: Sized,
impl StructuralPartialEq for Enable
Auto Trait Implementations§
impl Freeze for Enable
impl RefUnwindSafe for Enable
impl Send for Enable
impl Sync for Enable
impl Unpin for Enable
impl UnsafeUnpin for Enable
impl UnwindSafe for Enable
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