summaryrefslogtreecommitdiffstats
path: root/src/packets/connack.rs
blob: f7f3a77bd978f44c4632f4cc5878c37ae5ce4c8a (plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//
//   This Source Code Form is subject to the terms of the Mozilla Public
//   License, v. 2.0. If a copy of the MPL was not distributed with this
//   file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

crate::properties::define_properties! {
    properties_type: mqtt_format::v5::packets::connack::ConnackProperties,
    anker: "_Toc3901080",
    pub struct ConnackProperties {
        (anker: "_Toc3901082")
        session_expiry_interval: SessionExpiryInterval with setter = u32,

        (anker: "_Toc3901083")
        receive_maximum: ReceiveMaximum with setter = u16,

        (anker: "_Toc3901084")
        maximum_qos: MaximumQoS with setter = crate::v5::qos::QualityOfService,

        (anker: "_Toc3901085")
        retain_available: RetainAvailable with setter = u8,

        (anker: "_Toc3901086")
        maximum_packet_size: MaximumPacketSize with setter = u32,

        (anker: "_Toc3901087")
        assigned_client_identifier: AssignedClientIdentifier<'i> with setter = String,

        (anker: "_Toc3901088")
        topic_alias_maximum: TopicAliasMaximum with setter = u16,

        (anker: "_Toc3901089")
        reason_string: ReasonString<'i> with setter = String,

        (anker: "_Toc3901090")
        user_properties: UserProperties<'i> with setter = crate::properties::UserProperty,

        (anker: "_Toc3901091")
        wildcard_subscription_available: WildcardSubscriptionAvailable with setter = u8,

        (anker: "_Toc3901092")
        subscription_identifiers_available: SubscriptionIdentifiersAvailable with setter = u8,

        (anker: "_Toc3901093")
        shared_scubscription_available: SharedSubscriptionAvailable with setter = u8,

        (anker: "_Toc3901094")
        server_keep_alive: ServerKeepAlive with setter = u16,

        (anker: "_Toc3901095")
        response_information: ResponseInformation<'i> with setter = String,

        (anker: "_Toc3901096")
        server_reference: ServerReference<'i> with setter = String,

        (anker: "_Toc3901097")
        authentication_method: AuthenticationMethod<'i> with setter = String,

        (anker: "_Toc3901098")
        authentication_data: AuthenticationData<'i> with setter = Vec<u8>,
    }
}