cdp_protocol/
inspector.rs1#![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)]
13pub struct Disable(pub Option<Json>);
14#[allow(deprecated)]
15#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
16pub struct Enable(pub Option<Json>);
17#[allow(deprecated)]
18#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
19#[doc = "Disables inspector domain notifications."]
20pub struct DisableReturnObject(pub Option<Json>);
21#[allow(deprecated)]
22#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
23#[doc = "Enables inspector domain notifications."]
24pub struct EnableReturnObject(pub Option<Json>);
25#[allow(deprecated)]
26impl Method for Disable {
27 const NAME: &'static str = "Inspector.disable";
28 type ReturnObject = DisableReturnObject;
29}
30#[allow(deprecated)]
31impl Method for Enable {
32 const NAME: &'static str = "Inspector.enable";
33 type ReturnObject = EnableReturnObject;
34}
35#[allow(dead_code)]
36pub mod events {
37 #[allow(unused_imports)]
38 use super::super::types::*;
39 #[allow(unused_imports)]
40 use derive_builder::Builder;
41 #[allow(unused_imports)]
42 use serde::{Deserialize, Serialize};
43 #[allow(unused_imports)]
44 use serde_json::Value as Json;
45 #[allow(deprecated)]
46 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
47 pub struct DetachedEvent {
48 pub params: DetachedEventParams,
49 }
50 #[allow(deprecated)]
51 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
52 #[serde(rename_all = "camelCase")]
53 pub struct DetachedEventParams {
54 #[serde(default)]
55 #[doc = "The reason why connection has been terminated."]
56 pub reason: String,
57 }
58 #[allow(deprecated)]
59 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
60 pub struct TargetCrashedEvent(pub Option<Json>);
61 #[allow(deprecated)]
62 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
63 pub struct TargetReloadedAfterCrashEvent(pub Option<Json>);
64 #[allow(deprecated)]
65 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
66 pub struct WorkerScriptLoadedEvent(pub Option<Json>);
67}