Skip to main content

rustenium_bidi_definitions/emulation/
results.rs

1use serde::{Deserialize, Serialize};
2#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
3pub struct SetForcedColorsModeThemeOverrideResult {
4    #[serde(flatten)]
5    #[serde(default)]
6    pub extensible: std::collections::HashMap<String, serde_json::Value>,
7}
8impl TryFrom<serde_json::Value> for SetForcedColorsModeThemeOverrideResult {
9    type Error = serde_json::Error;
10    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
11        serde_json::from_value(value)
12    }
13}
14#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
15pub struct SetGeolocationOverrideResult {
16    #[serde(flatten)]
17    #[serde(default)]
18    pub extensible: std::collections::HashMap<String, serde_json::Value>,
19}
20impl TryFrom<serde_json::Value> for SetGeolocationOverrideResult {
21    type Error = serde_json::Error;
22    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
23        serde_json::from_value(value)
24    }
25}
26#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
27pub struct SetLocaleOverrideResult {
28    #[serde(flatten)]
29    #[serde(default)]
30    pub extensible: std::collections::HashMap<String, serde_json::Value>,
31}
32impl TryFrom<serde_json::Value> for SetLocaleOverrideResult {
33    type Error = serde_json::Error;
34    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
35        serde_json::from_value(value)
36    }
37}
38#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
39pub struct SetScreenOrientationOverrideResult {
40    #[serde(flatten)]
41    #[serde(default)]
42    pub extensible: std::collections::HashMap<String, serde_json::Value>,
43}
44impl TryFrom<serde_json::Value> for SetScreenOrientationOverrideResult {
45    type Error = serde_json::Error;
46    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
47        serde_json::from_value(value)
48    }
49}
50#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
51pub struct SetUserAgentOverrideResult {
52    #[serde(flatten)]
53    #[serde(default)]
54    pub extensible: std::collections::HashMap<String, serde_json::Value>,
55}
56impl TryFrom<serde_json::Value> for SetUserAgentOverrideResult {
57    type Error = serde_json::Error;
58    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
59        serde_json::from_value(value)
60    }
61}
62#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
63pub struct SetScriptingEnabledResult {
64    #[serde(flatten)]
65    #[serde(default)]
66    pub extensible: std::collections::HashMap<String, serde_json::Value>,
67}
68impl TryFrom<serde_json::Value> for SetScriptingEnabledResult {
69    type Error = serde_json::Error;
70    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
71        serde_json::from_value(value)
72    }
73}
74#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
75pub struct SetTimezoneOverrideResult {
76    #[serde(flatten)]
77    #[serde(default)]
78    pub extensible: std::collections::HashMap<String, serde_json::Value>,
79}
80impl TryFrom<serde_json::Value> for SetTimezoneOverrideResult {
81    type Error = serde_json::Error;
82    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
83        serde_json::from_value(value)
84    }
85}
86#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
87pub struct SetNetworkConditionsResult {}
88impl TryFrom<serde_json::Value> for SetNetworkConditionsResult {
89    type Error = serde_json::Error;
90    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
91        serde_json::from_value(value)
92    }
93}