rustenium_bidi_definitions/network/
results.rs1use serde::{Deserialize, Serialize};
2#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
3pub struct AddDataCollectorResult {
4 #[serde(rename = "collector")]
5 pub collector: super::types::Collector,
6}
7impl TryFrom<serde_json::Value> for AddDataCollectorResult {
8 type Error = serde_json::Error;
9 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
10 serde_json::from_value(value)
11 }
12}
13#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
14pub struct AddInterceptResult {
15 #[serde(rename = "intercept")]
16 pub intercept: super::types::Intercept,
17}
18impl TryFrom<serde_json::Value> for AddInterceptResult {
19 type Error = serde_json::Error;
20 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
21 serde_json::from_value(value)
22 }
23}
24#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
25pub struct ContinueRequestResult {
26 #[serde(flatten)]
27 #[serde(default)]
28 pub extensible: std::collections::HashMap<String, serde_json::Value>,
29}
30impl TryFrom<serde_json::Value> for ContinueRequestResult {
31 type Error = serde_json::Error;
32 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
33 serde_json::from_value(value)
34 }
35}
36#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
37pub struct ContinueResponseResult {
38 #[serde(flatten)]
39 #[serde(default)]
40 pub extensible: std::collections::HashMap<String, serde_json::Value>,
41}
42impl TryFrom<serde_json::Value> for ContinueResponseResult {
43 type Error = serde_json::Error;
44 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
45 serde_json::from_value(value)
46 }
47}
48#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
49pub struct ContinueWithAuthResult {
50 #[serde(flatten)]
51 #[serde(default)]
52 pub extensible: std::collections::HashMap<String, serde_json::Value>,
53}
54impl TryFrom<serde_json::Value> for ContinueWithAuthResult {
55 type Error = serde_json::Error;
56 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
57 serde_json::from_value(value)
58 }
59}
60#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
61pub struct DisownDataResult {
62 #[serde(flatten)]
63 #[serde(default)]
64 pub extensible: std::collections::HashMap<String, serde_json::Value>,
65}
66impl TryFrom<serde_json::Value> for DisownDataResult {
67 type Error = serde_json::Error;
68 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
69 serde_json::from_value(value)
70 }
71}
72#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
73pub struct FailRequestResult {
74 #[serde(flatten)]
75 #[serde(default)]
76 pub extensible: std::collections::HashMap<String, serde_json::Value>,
77}
78impl TryFrom<serde_json::Value> for FailRequestResult {
79 type Error = serde_json::Error;
80 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
81 serde_json::from_value(value)
82 }
83}
84#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
85pub struct GetDataResult {
86 #[serde(rename = "bytes")]
87 pub bytes: super::types::BytesValue,
88}
89impl TryFrom<serde_json::Value> for GetDataResult {
90 type Error = serde_json::Error;
91 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
92 serde_json::from_value(value)
93 }
94}
95#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
96pub struct ProvideResponseResult {
97 #[serde(flatten)]
98 #[serde(default)]
99 pub extensible: std::collections::HashMap<String, serde_json::Value>,
100}
101impl TryFrom<serde_json::Value> for ProvideResponseResult {
102 type Error = serde_json::Error;
103 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
104 serde_json::from_value(value)
105 }
106}
107#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
108pub struct RemoveDataCollectorResult {
109 #[serde(flatten)]
110 #[serde(default)]
111 pub extensible: std::collections::HashMap<String, serde_json::Value>,
112}
113impl TryFrom<serde_json::Value> for RemoveDataCollectorResult {
114 type Error = serde_json::Error;
115 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
116 serde_json::from_value(value)
117 }
118}
119#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
120pub struct RemoveInterceptResult {
121 #[serde(flatten)]
122 #[serde(default)]
123 pub extensible: std::collections::HashMap<String, serde_json::Value>,
124}
125impl TryFrom<serde_json::Value> for RemoveInterceptResult {
126 type Error = serde_json::Error;
127 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
128 serde_json::from_value(value)
129 }
130}
131#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
132pub struct SetCacheBehaviorResult {
133 #[serde(flatten)]
134 #[serde(default)]
135 pub extensible: std::collections::HashMap<String, serde_json::Value>,
136}
137impl TryFrom<serde_json::Value> for SetCacheBehaviorResult {
138 type Error = serde_json::Error;
139 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
140 serde_json::from_value(value)
141 }
142}
143#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
144pub struct SetExtraHeadersResult {
145 #[serde(flatten)]
146 #[serde(default)]
147 pub extensible: std::collections::HashMap<String, serde_json::Value>,
148}
149impl TryFrom<serde_json::Value> for SetExtraHeadersResult {
150 type Error = serde_json::Error;
151 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
152 serde_json::from_value(value)
153 }
154}