rustenium_cdp_definitions/browser_protocol/system_info/
results.rs1use serde::{Deserialize, Serialize};
2#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
3pub struct GetInfoResult {
4 #[doc = "Information about the GPUs on the system."]
5 #[serde(rename = "gpu")]
6 pub gpu: super::types::GpuInfo,
7 #[doc = "A platform-dependent description of the model of the machine. On Mac OS, this is, for\nexample, 'MacBookPro'. Will be the empty string if not supported."]
8 #[serde(rename = "modelName")]
9 pub model_name: String,
10 #[doc = "A platform-dependent description of the version of the machine. On Mac OS, this is, for\nexample, '10.1'. Will be the empty string if not supported."]
11 #[serde(rename = "modelVersion")]
12 pub model_version: String,
13 #[doc = "The command line string used to launch the browser. Will be the empty string if not\nsupported."]
14 #[serde(rename = "commandLine")]
15 pub command_line: String,
16}
17impl TryFrom<serde_json::Value> for GetInfoResult {
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, Serialize, Deserialize)]
24pub struct GetFeatureStateResult {
25 #[serde(rename = "featureEnabled")]
26 pub feature_enabled: bool,
27}
28impl TryFrom<serde_json::Value> for GetFeatureStateResult {
29 type Error = serde_json::Error;
30 fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
31 serde_json::from_value(value)
32 }
33}
34#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
35pub struct GetProcessInfoResult {
36 #[doc = "An array of process info blocks."]
37 #[serde(rename = "processInfo")]
38 #[serde(skip_serializing_if = "Vec::is_empty")]
39 pub process_info: Vec<super::types::ProcessInfo>,
40}
41impl TryFrom<serde_json::Value> for GetProcessInfoResult {
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}