rustenium_cdp_definitions/browser_protocol/dom_debugger/
results.rs1use serde::{Deserialize, Serialize};
2#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
3pub struct GetEventListenersResult {
4 #[doc = "Array of relevant listeners."]
5 #[serde(rename = "listeners")]
6 #[serde(skip_serializing_if = "Vec::is_empty")]
7 pub listeners: Vec<super::types::EventListener>,
8}
9impl TryFrom<serde_json::Value> for GetEventListenersResult {
10 type Error = serde_json::Error;
11 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
12 serde_json::from_value(value)
13 }
14}
15#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
16pub struct RemoveDomBreakpointResult {}
17impl TryFrom<serde_json::Value> for RemoveDomBreakpointResult {
18 type Error = serde_json::Error;
19 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
20 serde_json::from_value(value)
21 }
22}
23#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
24pub struct RemoveEventListenerBreakpointResult {}
25impl TryFrom<serde_json::Value> for RemoveEventListenerBreakpointResult {
26 type Error = serde_json::Error;
27 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
28 serde_json::from_value(value)
29 }
30}
31#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
32pub struct RemoveInstrumentationBreakpointResult {}
33impl TryFrom<serde_json::Value> for RemoveInstrumentationBreakpointResult {
34 type Error = serde_json::Error;
35 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
36 serde_json::from_value(value)
37 }
38}
39#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
40pub struct RemoveXhrBreakpointResult {}
41impl TryFrom<serde_json::Value> for RemoveXhrBreakpointResult {
42 type Error = serde_json::Error;
43 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
44 serde_json::from_value(value)
45 }
46}
47#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
48pub struct SetBreakOnCspViolationResult {}
49impl TryFrom<serde_json::Value> for SetBreakOnCspViolationResult {
50 type Error = serde_json::Error;
51 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
52 serde_json::from_value(value)
53 }
54}
55#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
56pub struct SetDomBreakpointResult {}
57impl TryFrom<serde_json::Value> for SetDomBreakpointResult {
58 type Error = serde_json::Error;
59 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
60 serde_json::from_value(value)
61 }
62}
63#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
64pub struct SetEventListenerBreakpointResult {}
65impl TryFrom<serde_json::Value> for SetEventListenerBreakpointResult {
66 type Error = serde_json::Error;
67 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
68 serde_json::from_value(value)
69 }
70}
71#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
72pub struct SetInstrumentationBreakpointResult {}
73impl TryFrom<serde_json::Value> for SetInstrumentationBreakpointResult {
74 type Error = serde_json::Error;
75 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
76 serde_json::from_value(value)
77 }
78}
79#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
80pub struct SetXhrBreakpointResult {}
81impl TryFrom<serde_json::Value> for SetXhrBreakpointResult {
82 type Error = serde_json::Error;
83 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
84 serde_json::from_value(value)
85 }
86}