Skip to main content

cdp_driver/protocol/
schema.rs

1// @generated by `just generate-methods` from protocol/*.json.
2// Do not edit by hand; edit xtask/ and regenerate.
3
4//! This domain is deprecated.
5//!
6//! Types, command parameters and event payloads for the `Schema`
7//! domain. The method-name constants for the same domain are in
8//! [`crate::methods`].
9//!
10//! This domain is deprecated in the protocol.
11
12use serde::{Deserialize, Serialize};
13
14/// Description of the protocol domain.
15#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
16pub struct Domain {
17    /// Domain name.
18    pub name: String,
19    /// Domain version.
20    pub version: String,
21}
22
23/// Returns supported domains.
24///
25/// Parameters of `Schema.getDomains`.
26#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
27pub struct GetDomainsParams {}
28
29/// What `Schema.getDomains` answers with.
30#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
31pub struct GetDomainsReturns {
32    /// List of supported domains.
33    pub domains: Vec<Domain>,
34}
35
36impl crate::typed::Command for GetDomainsParams {
37    const METHOD: &'static str = "Schema.getDomains";
38    type Returns = GetDomainsReturns;
39}