Skip to main content

js_protocol/schema/
mod.rs

1//! This domain is deprecated.
2use serde::{Serialize, Deserialize};
3use serde_json::Value as JsonValue;
4
5/// Description of the protocol domain.
6
7#[derive(Debug, Clone, Serialize, Deserialize, Default)]
8#[serde(rename_all = "camelCase")]
9pub struct Domain {
10    /// Domain name.
11
12    pub name: String,
13    /// Domain version.
14
15    pub version: String,
16}
17
18/// Returns supported domains.
19
20#[derive(Debug, Clone, Serialize, Deserialize, Default)]
21#[serde(rename_all = "camelCase")]
22pub struct GetDomainsReturns {
23    /// List of supported domains.
24
25    pub domains: Vec<Domain>,
26}
27
28#[derive(Debug, Clone, Serialize, Deserialize, Default)]
29pub struct GetDomainsParams {}
30
31impl GetDomainsParams { pub const METHOD: &'static str = "Schema.getDomains"; }
32
33impl crate::CdpCommand for GetDomainsParams {
34    const METHOD: &'static str = "Schema.getDomains";
35    type Response = GetDomainsReturns;
36}