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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
use crate::traits::{SEList, SEResource, Validate};
use sep2_common_derive::{SEList, SEResource};

use super::{
    links::{
        IPAddrListLink, LlinterfaceListLink, NeighborListLink, RplinstanceListLink,
        RplsourceRoutesListLink,
    },
    primitives::{
        HexBinary128, HexBinary64, HexBinary8, Int64, String16, String192, Uint16, Uint32, Uint8,
    },
};
use yaserde::{YaDeserialize, YaSerialize};

/// Contains 802.15.4 link layer specific attributes.
#[derive(Default, PartialEq, Eq, Debug, Clone, YaSerialize, YaDeserialize)]
#[yaserde(rename = "IEEE_802_15_4")]
#[yaserde(namespace = "urn:ieee:std:2030.5:ns")]
pub struct IEEE802154 {
    /// As defined by IEEE 802.15.4
    #[yaserde(rename = "capabilityInfo")]
    pub capability_info: HexBinary8,

    #[yaserde(rename = "NeighborListLink")]
    pub neighbor_list_link: Option<NeighborListLink>,

    /// As defined by IEEE 802.15.4
    #[yaserde(rename = "shortAddress")]
    pub short_address: Uint16,
}

impl Validate for IEEE802154 {}

#[derive(Default, PartialEq, Eq, Debug, Clone, YaSerialize, YaDeserialize, SEResource)]
#[yaserde(rename = "IPAddr")]
#[yaserde(namespace = "urn:ieee:std:2030.5:ns")]
pub struct IPAddr {
    /// An IP address value.
    #[yaserde(rename = "address")]
    pub address: HexBinary128,

    #[yaserde(rename = "RPLInstanceListLink")]
    pub rpl_instance_list_link: Option<RplinstanceListLink>,

    /// A reference to the resource address (URI). Required in a response to a
    /// GET, ignored otherwise.
    #[yaserde(attribute, rename = "href")]
    pub href: Option<String>,
}

impl PartialOrd for IPAddr {
    fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
        Some(self.cmp(other))
    }
}

impl Ord for IPAddr {
    fn cmp(&self, other: &Self) -> std::cmp::Ordering {
        // Primary Key - address (ascending)
        self.address.cmp(&other.address)
    }
}

impl Validate for IPAddr {}

#[derive(Default, PartialEq, Eq, Debug, Clone, YaSerialize, YaDeserialize, SEList, SEResource)]
#[yaserde(rename = "IPAddrList")]
#[yaserde(namespace = "urn:ieee:std:2030.5:ns")]
pub struct IPAddrList {
    #[yaserde(rename = "IPAddr")]
    pub ip_addr: Vec<IPAddr>,

    /// The number specifying "all" of the items in the list. Required on a
    /// response to a GET, ignored otherwise.
    #[yaserde(attribute, rename = "all")]
    pub all: Uint32,

    /// Indicates the number of items in this page of results.
    #[yaserde(attribute, rename = "results")]
    pub results: Uint32,

    /// A reference to the resource address (URI). Required in a response to a
    /// GET, ignored otherwise.
    #[yaserde(attribute, rename = "href")]
    pub href: Option<String>,
}

impl Validate for IPAddrList {}

#[derive(Default, PartialEq, Eq, Debug, Clone, YaSerialize, YaDeserialize, SEResource)]
#[yaserde(rename = "IPInterface")]
#[yaserde(namespace = "urn:ieee:std:2030.5:ns")]
pub struct IPInterface {
    /// Use rules from [RFC 2863].
    #[yaserde(rename = "ifDescr")]
    pub if_descr: Option<String192>,

    /// Use rules from [RFC 2863].
    #[yaserde(rename = "ifHighSpeed")]
    pub if_high_speed: Option<Uint32>,

    /// Use rules from [RFC 2863].
    #[yaserde(rename = "ifInBroadcastPkts")]
    pub if_in_broadcast_pkts: Option<Uint32>,

    /// Use rules from [RFC 2863].
    #[yaserde(rename = "ifIndex")]
    pub if_index: Option<Uint32>,

    /// Use rules from [RFC 2863]. Can be thought of as Input Datagrams
    /// Discarded.
    #[yaserde(rename = "ifInDiscards")]
    pub if_in_discards: Option<Uint32>,

    /// Use rules from [RFC 2863].
    #[yaserde(rename = "ifInErrors")]
    pub if_in_errors: Option<Uint32>,

    /// Use rules from [RFC 2863]. Can be thought of as Multicast Datagrams
    /// Received.
    #[yaserde(rename = "ifInMulticastPkts")]
    pub if_in_multicast_pkts: Option<Uint32>,

    /// Use rules from [RFC 2863]. Can be thought of as Bytes Received.
    #[yaserde(rename = "ifInOctets")]
    pub if_in_octets: Option<Uint32>,

    /// Use rules from [RFC 2863]. Can be thought of as Datagrams Received.
    #[yaserde(rename = "ifInUcastPkts")]
    pub if_in_ucast_pkts: Option<Uint32>,

    /// Use rules from [RFC 2863]. Can be thought of as Datagrams with Unknown
    /// Protocol Received.
    #[yaserde(rename = "ifInUnknownProtos")]
    pub if_in_unknown_protos: Option<Uint32>,

    /// Use rules from [RFC 2863].
    #[yaserde(rename = "ifMtu")]
    pub if_mtu: Option<Uint32>,

    /// Use rules from [RFC 2863].
    #[yaserde(rename = "ifName")]
    pub if_name: Option<String16>,

    /// Use rules and assignments from [RFC 2863].
    #[yaserde(rename = "ifOperStatus")]
    pub if_oper_status: Option<Uint8>,

    /// Use rules from [RFC 2863]. Can be thought of as Broadcast Datagrams Sent.
    #[yaserde(rename = "ifOutBroadcastPkts")]
    pub if_out_broadcast_pkts: Option<Uint32>,

    /// Use rules from [RFC 2863]. Can be thought of as Output Datagrams
    /// Discarded.
    #[yaserde(rename = "ifOutDiscards")]
    pub if_out_discards: Option<Uint32>,

    /// Use rules from [RFC 2863].
    #[yaserde(rename = "ifOutErrors")]
    pub if_out_errors: Option<Uint32>,

    /// Use rules from [RFC 2863]. Can be thought of as Multicast Datagrams Sent.
    #[yaserde(rename = "ifOutMulticastPkts")]
    pub if_out_multicast_pkts: Option<Uint32>,

    /// Use rules from [RFC 2863]. Can be thought of as Bytes Sent.
    #[yaserde(rename = "ifOutOctets")]
    pub if_out_octets: Option<Uint32>,

    /// Use rules from [RFC 2863]. Can be thought of as Datagrams Sent.
    #[yaserde(rename = "ifOutUcastPkts")]
    pub if_out_ucast_pkts: Option<Uint32>,

    /// Use rules from [RFC 2863].
    #[yaserde(rename = "ifPromiscuousMode")]
    pub if_promiscuous_mode: Option<bool>,

    /// Use rules from [RFC 2863].
    #[yaserde(rename = "ifSpeed")]
    pub if_speed: Option<Uint32>,

    /// Use rules and assignments from [RFC 2863].
    #[yaserde(rename = "ifType")]
    pub if_type: Option<Uint16>,

    #[yaserde(rename = "IPAddrListLink")]
    pub ip_addr_list_link: Option<IPAddrListLink>,

    /// Similar to ifLastChange in [RFC 2863].
    #[yaserde(rename = "lastResetTime")]
    pub last_reset_time: Option<Int64>,

    /// The date/time of the reported status.
    #[yaserde(rename = "lastUpdatedTime")]
    pub last_updated_time: Option<Int64>,

    #[yaserde(rename = "LLInterfaceListLink")]
    pub ll_interface_list_link: Option<LlinterfaceListLink>,

    /// A reference to the resource address (URI). Required in a response to a
    /// GET, ignored otherwise.
    #[yaserde(attribute, rename = "href")]
    pub href: Option<String>,
}

impl PartialOrd for IPInterface {
    fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
        Some(self.cmp(other))
    }
}

impl Ord for IPInterface {
    fn cmp(&self, other: &Self) -> std::cmp::Ordering {
        // Primary Key - ifIndex (ascending)
        self.if_index.cmp(&other.if_index)
    }
}

impl Validate for IPInterface {}

#[derive(Default, PartialEq, Eq, Debug, Clone, YaSerialize, YaDeserialize, SEList, SEResource)]
#[yaserde(rename = "IPInterfaceList")]
#[yaserde(namespace = "urn:ieee:std:2030.5:ns")]
pub struct IPInterfaceList {
    #[yaserde(rename = "IPInterface")]
    pub ip_interface: Vec<IPInterface>,

    /// The default polling rate for this function set (this resource and all
    /// resources below), in seconds. If not specified, a default of 900 seconds
    /// (15 minutes) is used. It is RECOMMENDED a client poll the resources of
    /// this function set every pollRate seconds.
    #[yaserde(attribute, rename = "pollRate")]
    pub poll_rate: Option<Uint32>,

    /// The number specifying "all" of the items in the list. Required on a
    /// response to a GET, ignored otherwise.
    #[yaserde(attribute, rename = "all")]
    pub all: Uint32,

    /// Indicates the number of items in this page of results.
    #[yaserde(attribute, rename = "results")]
    pub results: Uint32,

    /// A reference to the resource address (URI). Required in a response to a
    /// GET, ignored otherwise.
    #[yaserde(attribute, rename = "href")]
    pub href: Option<String>,
}

impl Validate for IPInterfaceList {}

#[derive(Default, PartialEq, Eq, Debug, Clone, YaSerialize, YaDeserialize, SEResource)]
#[yaserde(rename = "LLInterface")]
#[yaserde(namespace = "urn:ieee:std:2030.5:ns")]
pub struct LLInterface {
    /// Contains the number of CRC errors since reset.
    #[yaserde(rename = "CRCerrors")]
    pub cr_cerrors: Uint32,

    /// Contains the EUI-64 of the link layer interface. 48 bit MAC addresses
    /// SHALL be changed into an EUI-64 using the method defined in [RFC 4291],
    /// Appendix A. (The method is to insert "0xFFFE" as described in the
    /// reference.)
    #[yaserde(rename = "EUI64")]
    pub eui64: HexBinary64,

    #[yaserde(rename = "IEEE_802_15_4")]
    pub ieee_802_15_4: Option<IEEE802154>,

    /// Specifies the type of link layer interface associated with the
    /// IPInterface. Values are below.
    /// 0 = Unspecified
    /// 1 = IEEE 802.3 (Ethernet)
    /// 2 = IEEE 802.11 (WLAN)
    /// 3 = IEEE 802.15 (PAN)
    /// 4 = IEEE 1901 (PLC)
    /// All other values reserved.
    #[yaserde(rename = "linkLayerType")]
    pub link_layer_type: Uint8,

    /// Number of times an ACK was not received for a frame transmitted (when ACK
    /// was requested).
    #[yaserde(rename = "LLAckNotRx")]
    pub ll_ack_not_rx: Option<Uint32>,

    /// Number of times CSMA failed.
    #[yaserde(rename = "LLCSMAFail")]
    pub llcsma_fail: Option<Uint32>,

    /// Number of dropped receive frames.
    #[yaserde(rename = "LLFramesDropRx")]
    pub ll_frames_drop_rx: Option<Uint32>,

    /// Number of dropped transmit frames.
    #[yaserde(rename = "LLFramesDropTx")]
    pub ll_frames_drop_tx: Option<Uint32>,

    /// Number of link layer frames received.
    #[yaserde(rename = "LLFramesRx")]
    pub ll_frames_rx: Option<Uint32>,

    /// Number of link layer frames transmitted.
    #[yaserde(rename = "LLFramesTx")]
    pub ll_frames_tx: Option<Uint32>,

    /// Number of times access to media failed.
    #[yaserde(rename = "LLMediaAccessFail")]
    pub ll_media_access_fail: Option<Uint32>,

    /// Number of Bytes received.
    #[yaserde(rename = "LLOctetsRx")]
    pub ll_octets_rx: Option<Uint32>,

    /// Number of Bytes transmitted.
    #[yaserde(rename = "LLOctetsTx")]
    pub ll_octets_tx: Option<Uint32>,

    /// Number of MAC transmit retries.
    #[yaserde(rename = "LLRetryCount")]
    pub ll_retry_count: Option<Uint32>,

    /// Number of receive security errors.
    #[yaserde(rename = "LLSecurityErrorRx")]
    pub ll_security_error_rx: Option<Uint32>,

    #[yaserde(rename = "loWPAN")]
    pub lo_wpan: Option<LoWPAN>,

    /// A reference to the resource address (URI). Required in a response to a
    /// GET, ignored otherwise.
    #[yaserde(attribute, rename = "href")]
    pub href: Option<String>,
}

impl PartialOrd for LLInterface {
    fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
        Some(self.cmp(other))
    }
}

impl Ord for LLInterface {
    fn cmp(&self, other: &Self) -> std::cmp::Ordering {
        // Primary Key - EUI64 (ascending)
        self.eui64.cmp(&other.eui64)
    }
}

impl Validate for LLInterface {}

#[derive(Default, PartialEq, Eq, Debug, Clone, YaSerialize, YaDeserialize, SEList, SEResource)]
#[yaserde(rename = "LLInterfaceList")]
#[yaserde(namespace = "urn:ieee:std:2030.5:ns")]
pub struct LlinterfaceList {
    #[yaserde(rename = "LLInterface")]
    pub ll_interface: Vec<LLInterface>,

    /// The number specifying "all" of the items in the list. Required on a
    /// response to a GET, ignored otherwise.
    #[yaserde(attribute, rename = "all")]
    pub all: Uint32,

    /// Indicates the number of items in this page of results.
    #[yaserde(attribute, rename = "results")]
    pub results: Uint32,

    /// A reference to the resource address (URI). Required in a response to a
    /// GET, ignored otherwise.
    #[yaserde(attribute, rename = "href")]
    pub href: Option<String>,
}

impl Validate for LlinterfaceList {}

/// Contains information specific to 6LoWPAN.
#[derive(Default, PartialEq, Eq, Debug, Clone, YaSerialize, YaDeserialize)]
#[yaserde(rename = "loWPAN")]
#[yaserde(namespace = "urn:ieee:std:2030.5:ns")]
pub struct LoWPAN {
    /// Number of Bytes received
    #[yaserde(rename = "octetsRx")]
    pub octets_rx: Option<Uint32>,

    /// Number of Bytes transmitted
    #[yaserde(rename = "octetsTx")]
    pub octets_tx: Option<Uint32>,

    /// Number of packets received
    #[yaserde(rename = "packetsRx")]
    pub packets_rx: Uint32,

    /// Number of packets transmitted
    #[yaserde(rename = "packetsTx")]
    pub packets_tx: Uint32,

    /// Number of errors receiving fragments
    #[yaserde(rename = "rxFragError")]
    pub rx_frag_error: Uint32,
}

impl Validate for LoWPAN {}

#[derive(
    Default, PartialEq, PartialOrd, Eq, Ord, Debug, Clone, YaSerialize, YaDeserialize, SEResource,
)]
#[yaserde(rename = "Neighbor")]
#[yaserde(namespace = "urn:ieee:std:2030.5:ns")]
pub struct Neighbor {
    /// True if the neighbor is a child.
    #[yaserde(rename = "isChild")]
    pub is_child: bool,

    /// The quality of the link, as defined by 802.15.4
    #[yaserde(rename = "linkQuality")]
    pub link_quality: Uint8,

    /// As defined by IEEE 802.15.4
    #[yaserde(rename = "shortAddress")]
    pub short_address: Uint16,

    /// A reference to the resource address (URI). Required in a response to a
    /// GET, ignored otherwise.
    #[yaserde(attribute, rename = "href")]
    pub href: Option<String>,
}

impl Validate for Neighbor {}

#[derive(Default, PartialEq, Eq, Debug, Clone, YaSerialize, YaDeserialize, SEList, SEResource)]
#[yaserde(rename = "NeighborList")]
#[yaserde(namespace = "urn:ieee:std:2030.5:ns")]
pub struct NeighborList {
    #[yaserde(rename = "Neighbor")]
    pub neighbor: Vec<Neighbor>,

    /// The number specifying "all" of the items in the list. Required on a
    /// response to a GET, ignored otherwise.
    #[yaserde(attribute, rename = "all")]
    pub all: Uint32,

    /// Indicates the number of items in this page of results.
    #[yaserde(attribute, rename = "results")]
    pub results: Uint32,

    /// A reference to the resource address (URI). Required in a response to a
    /// GET, ignored otherwise.
    #[yaserde(attribute, rename = "href")]
    pub href: Option<String>,
}

impl Validate for NeighborList {}

#[derive(Default, PartialEq, Eq, Debug, Clone, YaSerialize, YaDeserialize, SEResource)]
#[yaserde(rename = "RPLInstance")]
#[yaserde(namespace = "urn:ieee:std:2030.5:ns")]
pub struct RPLInstance {
    /// See [RFC 6550].
    #[yaserde(rename = "DODAGid")]
    pub doda_gid: Uint8,

    /// See [RFC 6550].
    #[yaserde(rename = "DODAGroot")]
    pub doda_groot: bool,

    /// See [RFC 6550].
    #[yaserde(rename = "flags")]
    pub flags: Uint8,

    /// See [RFC 6550].
    #[yaserde(rename = "groundedFlag")]
    pub grounded_flag: bool,

    /// See [RFC 6550].
    #[yaserde(rename = "MOP")]
    pub mop: Uint8,

    /// See [RFC 6550].
    #[yaserde(rename = "PRF")]
    pub prf: Uint8,

    /// See [RFC 6550].
    #[yaserde(rename = "rank")]
    pub rank: Uint16,

    /// See [RFC 6550].
    #[yaserde(rename = "RPLInstanceID")]
    pub rpl_instance_id: Uint8,

    #[yaserde(rename = "RPLSourceRoutesListLink")]
    pub rpl_source_routes_list_link: Option<RplsourceRoutesListLink>,

    /// See [RFC 6550].
    #[yaserde(rename = "versionNumber")]
    pub version_number: Uint8,

    /// A reference to the resource address (URI). Required in a response to a
    /// GET, ignored otherwise.
    #[yaserde(attribute, rename = "href")]
    pub href: Option<String>,
}

impl PartialOrd for RPLInstance {
    fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
        Some(self.cmp(other))
    }
}

impl Ord for RPLInstance {
    fn cmp(&self, other: &Self) -> std::cmp::Ordering {
        // Primary Key - DODAGid (ascending)
        match self.doda_gid.cmp(&other.doda_gid) {
            core::cmp::Ordering::Equal => {}
            ord => return ord,
        }
        // Secondary Key - RPLInstanceID (ascending)
        self.rpl_instance_id.cmp(&other.rpl_instance_id)
    }
}

impl Validate for RPLInstance {}

#[derive(Default, PartialEq, Eq, Debug, Clone, YaSerialize, YaDeserialize, SEList, SEResource)]
#[yaserde(rename = "RPLInstanceList")]
#[yaserde(namespace = "urn:ieee:std:2030.5:ns")]
pub struct RPLInstanceList {
    #[yaserde(rename = "RPLInstance")]
    pub rpl_instance: Vec<RPLInstance>,

    /// The number specifying "all" of the items in the list. Required on a
    /// response to a GET, ignored otherwise.
    #[yaserde(attribute, rename = "all")]
    pub all: Uint32,

    /// Indicates the number of items in this page of results.
    #[yaserde(attribute, rename = "results")]
    pub results: Uint32,

    /// A reference to the resource address (URI). Required in a response to a
    /// GET, ignored otherwise.
    #[yaserde(attribute, rename = "href")]
    pub href: Option<String>,
}

impl Validate for RPLInstanceList {}

#[derive(Default, PartialEq, Eq, Debug, Clone, YaSerialize, YaDeserialize, SEResource)]
#[yaserde(rename = "RPLSourceRoutes")]
#[yaserde(namespace = "urn:ieee:std:2030.5:ns")]
pub struct RPLSourceRoutes {
    /// See [RFC 6554].
    #[yaserde(rename = "DestAddress")]
    pub dest_address: HexBinary128,

    /// See [RFC 6554].
    #[yaserde(rename = "SourceRoute")]
    pub source_route: HexBinary128,

    /// A reference to the resource address (URI). Required in a response to a
    /// GET, ignored otherwise.
    #[yaserde(attribute, rename = "href")]
    pub href: Option<String>,
}

impl PartialOrd for RPLSourceRoutes {
    fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
        Some(self.cmp(other))
    }
}

impl Ord for RPLSourceRoutes {
    fn cmp(&self, other: &Self) -> std::cmp::Ordering {
        // Primary Key - SourceRoute (ascending)
        match self.source_route.cmp(&other.source_route) {
            core::cmp::Ordering::Equal => {}
            ord => return ord,
        }
        // Secondary Key - DestAddress (ascending)
        self.dest_address.cmp(&other.dest_address)
    }
}

impl Validate for RPLSourceRoutes {}

#[derive(Default, PartialEq, Eq, Debug, Clone, YaSerialize, YaDeserialize, SEList, SEResource)]
#[yaserde(rename = "RPLSourceRoutesList")]
#[yaserde(namespace = "urn:ieee:std:2030.5:ns")]
pub struct RPLSourceRoutesList {
    #[yaserde(rename = "RPLSourceRoutes")]
    pub rpl_source_routes: Vec<RPLSourceRoutes>,

    /// The number specifying "all" of the items in the list. Required on a
    /// response to a GET, ignored otherwise.
    #[yaserde(attribute, rename = "all")]
    pub all: Uint32,

    /// Indicates the number of items in this page of results.
    #[yaserde(attribute, rename = "results")]
    pub results: Uint32,

    /// A reference to the resource address (URI). Required in a response to a
    /// GET, ignored otherwise.
    #[yaserde(attribute, rename = "href")]
    pub href: Option<String>,
}

impl Validate for RPLSourceRoutesList {}