Skip to main content

cdp_protocol/
event_breakpoints.rs

1// Auto-generated from Chrome at version 146.0.7680.165 domain: EventBreakpoints
2#![allow(dead_code)]
3#[allow(unused_imports)]
4use super::types::*;
5#[allow(unused_imports)]
6use derive_builder::Builder;
7#[allow(unused_imports)]
8use serde::{Deserialize, Serialize};
9#[allow(unused_imports)]
10use serde_json::Value as Json;
11#[allow(deprecated)]
12#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
13#[builder(setter(into, strip_option))]
14#[serde(rename_all = "camelCase")]
15#[doc = "Sets breakpoint on particular native event."]
16pub struct SetInstrumentationBreakpoint {
17    #[serde(default)]
18    #[doc = "Instrumentation name to stop on."]
19    pub event_name: String,
20}
21#[allow(deprecated)]
22#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
23#[builder(setter(into, strip_option))]
24#[serde(rename_all = "camelCase")]
25#[doc = "Removes breakpoint on particular native event."]
26pub struct RemoveInstrumentationBreakpoint {
27    #[serde(default)]
28    #[doc = "Instrumentation name to stop on."]
29    pub event_name: String,
30}
31#[allow(deprecated)]
32#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
33pub struct Disable(pub Option<Json>);
34#[allow(deprecated)]
35#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
36#[doc = "Sets breakpoint on particular native event."]
37pub struct SetInstrumentationBreakpointReturnObject(pub Option<Json>);
38#[allow(deprecated)]
39#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
40#[doc = "Removes breakpoint on particular native event."]
41pub struct RemoveInstrumentationBreakpointReturnObject(pub Option<Json>);
42#[allow(deprecated)]
43#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
44#[doc = "Removes all breakpoints"]
45pub struct DisableReturnObject(pub Option<Json>);
46#[allow(deprecated)]
47impl Method for SetInstrumentationBreakpoint {
48    const NAME: &'static str = "EventBreakpoints.setInstrumentationBreakpoint";
49    type ReturnObject = SetInstrumentationBreakpointReturnObject;
50}
51#[allow(deprecated)]
52impl Method for RemoveInstrumentationBreakpoint {
53    const NAME: &'static str = "EventBreakpoints.removeInstrumentationBreakpoint";
54    type ReturnObject = RemoveInstrumentationBreakpointReturnObject;
55}
56#[allow(deprecated)]
57impl Method for Disable {
58    const NAME: &'static str = "EventBreakpoints.disable";
59    type ReturnObject = DisableReturnObject;
60}
61#[allow(dead_code)]
62pub mod events {
63    #[allow(unused_imports)]
64    use super::super::types::*;
65    #[allow(unused_imports)]
66    use derive_builder::Builder;
67    #[allow(unused_imports)]
68    use serde::{Deserialize, Serialize};
69    #[allow(unused_imports)]
70    use serde_json::Value as Json;
71}