battler_wamp/auth/undisputed/
message.rs

1use battler_wamp_values::WampDictionary;
2
3use crate::auth::message::{
4    ClientFinalMessage as GenericClientFinalMessage,
5    ClientFirstMessage as GenericClientFirstMessage,
6    ServerFinalMessage as GenericServerFinalMessage,
7    ServerFirstMessage as GenericServerFirstMessage,
8};
9
10/// The extra data for the client's first message of the undisputed authentication method.
11#[derive(Debug, WampDictionary)]
12pub struct ClientFirstMessageExtra {
13    pub role: String,
14}
15
16/// The extra data for the server's first message of the undisputed authentication method.
17#[derive(Debug, WampDictionary)]
18pub struct ServerFirstMessageExtra {}
19
20/// The extra data for the client's final message of the undisputed authentication method.
21#[derive(Debug, WampDictionary)]
22pub struct ClientFinalMessageExtra {}
23
24/// The extra data for the server's final message of the undisputed authentication method.
25#[derive(Debug, WampDictionary)]
26pub struct ServerFinalMessageExtra {}
27
28pub type ClientFirstMessage = GenericClientFirstMessage<ClientFirstMessageExtra>;
29pub type ServerFirstMessage = GenericServerFirstMessage<ServerFirstMessageExtra>;
30pub type ClientFinalMessage = GenericClientFinalMessage<ClientFinalMessageExtra>;
31pub type ServerFinalMessage = GenericServerFinalMessage<ServerFinalMessageExtra>;