1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use serde::{Deserialize, Serialize};

use crate::extensions::{CheckSupportedExtensionsRequest, CheckSupportedExtensionsResponse};

#[derive(Debug, Serialize, Deserialize)]
pub struct ClientCheckServerRequestV1 {
    pub server_name: String,
    pub canonical_name: String,
    pub check_extensions: CheckSupportedExtensionsRequest,
}
crate::impl_request!(ClientCheckServerRequestV1);

#[derive(Debug, Serialize, Deserialize)]
pub struct ClientCheckServerResponseV1 {
    pub server_version: String,
    pub server_name: String,
    pub server_description: String,
    pub supported_extensions: CheckSupportedExtensionsResponse,
}
crate::impl_response!(ClientCheckServerResponseV1);