Skip to main content

js_protocol/schema/
mod.rs

1//! This domain is deprecated.
2
3use serde::{Serialize, Deserialize};
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}