open_protocol/messages/
result.rs

1use open_protocol_codec_proc_macro::{OpenProtocolDecode, OpenProtocolEncode, OpenProtocolMessage};
2
3#[derive(Debug, Default, Eq, PartialEq, OpenProtocolEncode, OpenProtocolDecode, OpenProtocolMessage)]
4#[open_protocol_message(MID = 1201, revision = 1)]
5pub struct MID1201rev1 {}
6#[derive(Debug, Default, Eq, PartialEq, OpenProtocolEncode, OpenProtocolDecode, OpenProtocolMessage)]
7#[open_protocol_message(MID = 1201, revision = 2)]
8pub struct MID1201rev2 {}
9#[derive(Debug, Default, Eq, PartialEq, OpenProtocolEncode, OpenProtocolDecode, OpenProtocolMessage)]
10#[open_protocol_message(MID = 1201, revision = 3)]
11pub struct MID1201rev3 {}
12
13#[derive(Debug, Default, Eq, PartialEq, OpenProtocolEncode, OpenProtocolDecode, OpenProtocolMessage)]
14#[open_protocol_message(MID = 1201, revision = 1, type = "request_extra_data")]
15pub struct MID1201RequestExtraData {
16    /// The index of the requested tightening result. If equal to zero, response will contain
17    /// the most recent result.
18    #[open_protocol_field(length = 10)]
19    pub index: u64,
20}
21
22#[derive(Debug, Default, Eq, PartialEq, OpenProtocolEncode, OpenProtocolDecode, OpenProtocolMessage)]
23#[open_protocol_message(MID = 1201, revision = 1, type = "subscribe_extra_data")]
24pub struct MID1201SubscriptionExtraData {}
25
26#[derive(Debug, Default, Eq, PartialEq, OpenProtocolEncode, OpenProtocolDecode, OpenProtocolMessage)]
27#[open_protocol_message(MID = 1202, revision = 1)]
28pub struct MID1202rev1 {}
29
30#[derive(Debug, Default, Eq, PartialEq, OpenProtocolEncode, OpenProtocolDecode, OpenProtocolMessage)]
31#[open_protocol_message(MID = 1202, revision = 2)]
32pub struct MID1202rev2 {}
33
34#[derive(Debug, Default, Eq, PartialEq, OpenProtocolEncode, OpenProtocolDecode, OpenProtocolMessage)]
35#[open_protocol_message(MID = 1203, revision = 1)]
36pub struct MID1203rev1 {}