Skip to main content

rustenium_cdp_definitions/browser_protocol/tethering/
results.rs

1use serde::{Deserialize, Serialize};
2#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
3pub struct BindResult {}
4impl TryFrom<serde_json::Value> for BindResult {
5    type Error = serde_json::Error;
6    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
7        serde_json::from_value(value)
8    }
9}
10#[derive(Debug, Clone, PartialEq, Default, Serialize, Deserialize)]
11pub struct UnbindResult {}
12impl TryFrom<serde_json::Value> for UnbindResult {
13    type Error = serde_json::Error;
14    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
15        serde_json::from_value(value)
16    }
17}