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