34
34
/// message and refer to the types by name in the P4DataTypeSpec message. We also
35
35
/// support annotations for these type specs which can be useful, e.g. to
36
36
/// identify well-known headers (such as ipv4).
37
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
37
38
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
38
39
pub struct P4TypeInfo {
39
40
#[ prost( map="string, message" , tag="1" ) ]
@@ -52,14 +53,16 @@ pub struct P4TypeInfo {
52
53
pub new_types : :: std:: collections:: HashMap < :: prost:: alloc:: string:: String , P4NewTypeSpec > ,
53
54
}
54
55
/// Describes a P4_16 type.
56
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
55
57
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
56
58
pub struct P4DataTypeSpec {
57
59
#[ prost( oneof="p4_data_type_spec::TypeSpec" , tags="1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12" ) ]
58
60
pub type_spec : :: core:: option:: Option < p4_data_type_spec:: TypeSpec > ,
59
61
}
60
62
/// Nested message and enum types in `P4DataTypeSpec`.
61
63
pub mod p4_data_type_spec {
62
- #[ derive( Clone , PartialEq , :: prost:: Oneof ) ]
64
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
65
+ #[ derive( Clone , PartialEq , :: prost:: Oneof ) ]
63
66
pub enum TypeSpec {
64
67
#[ prost( message, tag="1" ) ]
65
68
Bitstring ( super :: P4BitstringLikeTypeSpec ) ,
@@ -87,19 +90,23 @@ pub mod p4_data_type_spec {
87
90
NewType ( super :: P4NamedType ) ,
88
91
}
89
92
}
93
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
90
94
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
91
95
pub struct P4NamedType {
92
96
#[ prost( string, tag="1" ) ]
93
97
pub name : :: prost:: alloc:: string:: String ,
94
98
}
95
99
/// Empty message as no type information needed, just used as a placeholder in
96
100
/// the oneof to identify boolean types.
101
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
97
102
#[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
98
103
pub struct P4BoolType {
99
104
}
105
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
100
106
#[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
101
107
pub struct P4ErrorType {
102
108
}
109
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
103
110
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
104
111
pub struct P4BitstringLikeTypeSpec {
105
112
/// Useful to identify well-known types, such as IP address or Ethernet MAC
@@ -117,7 +124,8 @@ pub struct P4BitstringLikeTypeSpec {
117
124
}
118
125
/// Nested message and enum types in `P4BitstringLikeTypeSpec`.
119
126
pub mod p4_bitstring_like_type_spec {
120
- #[ derive( Clone , Copy , PartialEq , :: prost:: Oneof ) ]
127
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
128
+ #[ derive( Clone , Copy , PartialEq , :: prost:: Oneof ) ]
121
129
pub enum TypeSpec {
122
130
/// bit<W>
123
131
#[ prost( message, tag="1" ) ]
@@ -130,28 +138,33 @@ pub mod p4_bitstring_like_type_spec {
130
138
Varbit ( super :: P4VarbitTypeSpec ) ,
131
139
}
132
140
}
141
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
133
142
#[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
134
143
pub struct P4BitTypeSpec {
135
144
#[ prost( int32, tag="1" ) ]
136
145
pub bitwidth : i32 ,
137
146
}
147
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
138
148
#[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
139
149
pub struct P4IntTypeSpec {
140
150
#[ prost( int32, tag="1" ) ]
141
151
pub bitwidth : i32 ,
142
152
}
153
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
143
154
#[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
144
155
pub struct P4VarbitTypeSpec {
145
156
#[ prost( int32, tag="1" ) ]
146
157
pub max_bitwidth : i32 ,
147
158
}
148
159
/// From the P4_16 spec: "A tuple is similar to a struct, in that it holds
149
160
/// multiple values. Unlike a struct type, tuples have no named fields."
161
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
150
162
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
151
163
pub struct P4TupleTypeSpec {
152
164
#[ prost( message, repeated, tag="1" ) ]
153
165
pub members : :: prost:: alloc:: vec:: Vec < P4DataTypeSpec > ,
154
166
}
167
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
155
168
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
156
169
pub struct P4StructTypeSpec {
157
170
#[ prost( message, repeated, tag="1" ) ]
@@ -167,14 +180,16 @@ pub struct P4StructTypeSpec {
167
180
}
168
181
/// Nested message and enum types in `P4StructTypeSpec`.
169
182
pub mod p4_struct_type_spec {
170
- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
183
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
184
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
171
185
pub struct Member {
172
186
#[ prost( string, tag="1" ) ]
173
187
pub name : :: prost:: alloc:: string:: String ,
174
188
#[ prost( message, optional, tag="2" ) ]
175
189
pub type_spec : :: core:: option:: Option < super :: P4DataTypeSpec > ,
176
190
}
177
191
}
192
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
178
193
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
179
194
pub struct P4HeaderTypeSpec {
180
195
#[ prost( message, repeated, tag="1" ) ]
@@ -190,14 +205,16 @@ pub struct P4HeaderTypeSpec {
190
205
}
191
206
/// Nested message and enum types in `P4HeaderTypeSpec`.
192
207
pub mod p4_header_type_spec {
193
- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
208
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
209
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
194
210
pub struct Member {
195
211
#[ prost( string, tag="1" ) ]
196
212
pub name : :: prost:: alloc:: string:: String ,
197
213
#[ prost( message, optional, tag="2" ) ]
198
214
pub type_spec : :: core:: option:: Option < super :: P4BitstringLikeTypeSpec > ,
199
215
}
200
216
}
217
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
201
218
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
202
219
pub struct P4HeaderUnionTypeSpec {
203
220
#[ prost( message, repeated, tag="1" ) ]
@@ -213,48 +230,55 @@ pub struct P4HeaderUnionTypeSpec {
213
230
}
214
231
/// Nested message and enum types in `P4HeaderUnionTypeSpec`.
215
232
pub mod p4_header_union_type_spec {
216
- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
233
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
234
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
217
235
pub struct Member {
218
236
#[ prost( string, tag="1" ) ]
219
237
pub name : :: prost:: alloc:: string:: String ,
220
238
#[ prost( message, optional, tag="2" ) ]
221
239
pub header : :: core:: option:: Option < super :: P4NamedType > ,
222
240
}
223
241
}
242
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
224
243
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
225
244
pub struct P4HeaderStackTypeSpec {
226
245
#[ prost( message, optional, tag="1" ) ]
227
246
pub header : :: core:: option:: Option < P4NamedType > ,
228
247
#[ prost( int32, tag="2" ) ]
229
248
pub size : i32 ,
230
249
}
250
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
231
251
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
232
252
pub struct P4HeaderUnionStackTypeSpec {
233
253
#[ prost( message, optional, tag="1" ) ]
234
254
pub header_union : :: core:: option:: Option < P4NamedType > ,
235
255
#[ prost( int32, tag="2" ) ]
236
256
pub size : i32 ,
237
257
}
258
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
238
259
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
239
260
pub struct KeyValuePair {
240
261
#[ prost( string, tag="1" ) ]
241
262
pub key : :: prost:: alloc:: string:: String ,
242
263
#[ prost( message, optional, tag="2" ) ]
243
264
pub value : :: core:: option:: Option < Expression > ,
244
265
}
266
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
245
267
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
246
268
pub struct KeyValuePairList {
247
269
#[ prost( message, repeated, tag="1" ) ]
248
270
pub kv_pairs : :: prost:: alloc:: vec:: Vec < KeyValuePair > ,
249
271
}
272
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
250
273
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
251
274
pub struct Expression {
252
275
#[ prost( oneof="expression::Value" , tags="1, 2, 3" ) ]
253
276
pub value : :: core:: option:: Option < expression:: Value > ,
254
277
}
255
278
/// Nested message and enum types in `Expression`.
256
279
pub mod expression {
257
- #[ derive( Clone , PartialEq , :: prost:: Oneof ) ]
280
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
281
+ #[ derive( Clone , PartialEq , :: prost:: Oneof ) ]
258
282
pub enum Value {
259
283
#[ prost( string, tag="1" ) ]
260
284
StringValue ( :: prost:: alloc:: string:: String ) ,
@@ -264,11 +288,13 @@ pub mod expression {
264
288
BoolValue ( bool ) ,
265
289
}
266
290
}
291
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
267
292
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
268
293
pub struct ExpressionList {
269
294
#[ prost( message, repeated, tag="1" ) ]
270
295
pub expressions : :: prost:: alloc:: vec:: Vec < Expression > ,
271
296
}
297
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
272
298
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
273
299
pub struct StructuredAnnotation {
274
300
#[ prost( string, tag="1" ) ]
@@ -281,7 +307,8 @@ pub struct StructuredAnnotation {
281
307
}
282
308
/// Nested message and enum types in `StructuredAnnotation`.
283
309
pub mod structured_annotation {
284
- #[ derive( Clone , PartialEq , :: prost:: Oneof ) ]
310
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
311
+ #[ derive( Clone , PartialEq , :: prost:: Oneof ) ]
285
312
pub enum Body {
286
313
#[ prost( message, tag="2" ) ]
287
314
ExpressionList ( super :: ExpressionList ) ,
@@ -290,6 +317,7 @@ pub mod structured_annotation {
290
317
}
291
318
}
292
319
/// Location of code relative to a given source file.
320
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
293
321
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
294
322
pub struct SourceLocation {
295
323
/// Path to the source file (absolute or relative to the working directory).
@@ -303,6 +331,7 @@ pub struct SourceLocation {
303
331
}
304
332
/// For "safe" enums with no underlying representation and no member integer
305
333
/// values.
334
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
306
335
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
307
336
pub struct P4EnumTypeSpec {
308
337
#[ prost( message, repeated, tag="1" ) ]
@@ -318,7 +347,8 @@ pub struct P4EnumTypeSpec {
318
347
}
319
348
/// Nested message and enum types in `P4EnumTypeSpec`.
320
349
pub mod p4_enum_type_spec {
321
- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
350
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
351
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
322
352
pub struct Member {
323
353
#[ prost( string, tag="1" ) ]
324
354
pub name : :: prost:: alloc:: string:: String ,
@@ -335,6 +365,7 @@ pub mod p4_enum_type_spec {
335
365
/// For serializable (or "unsafe") enums, which have an underlying type. Note
336
366
/// that as per the P4_16 specification, the underlying representation can only
337
367
/// be a bit<W> type.
368
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
338
369
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
339
370
pub struct P4SerializableEnumTypeSpec {
340
371
#[ prost( message, optional, tag="1" ) ]
@@ -352,7 +383,8 @@ pub struct P4SerializableEnumTypeSpec {
352
383
}
353
384
/// Nested message and enum types in `P4SerializableEnumTypeSpec`.
354
385
pub mod p4_serializable_enum_type_spec {
355
- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
386
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
387
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
356
388
pub struct Member {
357
389
#[ prost( string, tag="1" ) ]
358
390
pub name : :: prost:: alloc:: string:: String ,
@@ -370,11 +402,13 @@ pub mod p4_serializable_enum_type_spec {
370
402
}
371
403
/// Similar to an enum, but there is always one and only one instance per P4
372
404
/// program.
405
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
373
406
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
374
407
pub struct P4ErrorTypeSpec {
375
408
#[ prost( string, repeated, tag="1" ) ]
376
409
pub members : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: string:: String > ,
377
410
}
411
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
378
412
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
379
413
pub struct P4NewTypeTranslation {
380
414
/// the URI uniquely identifies the translation in order to enable the
@@ -390,12 +424,14 @@ pub struct P4NewTypeTranslation {
390
424
}
391
425
/// Nested message and enum types in `P4NewTypeTranslation`.
392
426
pub mod p4_new_type_translation {
393
- #[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
427
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
428
+ #[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
394
429
pub struct SdnString {
395
430
}
396
431
/// The object is either represented as an unsigned integer with a bitwidth of
397
432
/// `sdn_bitwidth`, or as a string.
398
- #[ derive( Clone , Copy , PartialEq , :: prost:: Oneof ) ]
433
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
434
+ #[ derive( Clone , Copy , PartialEq , :: prost:: Oneof ) ]
399
435
pub enum SdnType {
400
436
#[ prost( int32, tag="2" ) ]
401
437
SdnBitwidth ( i32 ) ,
@@ -404,6 +440,7 @@ pub mod p4_new_type_translation {
404
440
}
405
441
}
406
442
/// New types introduced with the "type" keyword
443
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
407
444
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
408
445
pub struct P4NewTypeSpec {
409
446
/// for other annotations (not @p4runtime_translation)
@@ -420,7 +457,8 @@ pub struct P4NewTypeSpec {
420
457
}
421
458
/// Nested message and enum types in `P4NewTypeSpec`.
422
459
pub mod p4_new_type_spec {
423
- #[ derive( Clone , PartialEq , :: prost:: Oneof ) ]
460
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
461
+ #[ derive( Clone , PartialEq , :: prost:: Oneof ) ]
424
462
pub enum Representation {
425
463
/// if no @p4runtime_translation annotation present
426
464
#[ prost( message, tag="1" ) ]
@@ -430,6 +468,7 @@ pub mod p4_new_type_spec {
430
468
TranslatedType ( super :: P4NewTypeTranslation ) ,
431
469
}
432
470
}
471
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
433
472
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
434
473
pub struct P4Info {
435
474
#[ prost( message, optional, tag="1" ) ]
@@ -461,6 +500,7 @@ pub struct P4Info {
461
500
#[ prost( message, optional, tag="200" ) ]
462
501
pub type_info : :: core:: option:: Option < P4TypeInfo > ,
463
502
}
503
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
464
504
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
465
505
pub struct Documentation {
466
506
/// A brief description of something, e.g. one sentence
@@ -473,6 +513,7 @@ pub struct Documentation {
473
513
}
474
514
/// Used to describe the required properties of the underlying platform.
475
515
/// Added in v1.4.0
516
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
476
517
#[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
477
518
pub struct PlatformProperties {
478
519
/// The minimum number of multicast entries (i.e. multicast groups) that the
@@ -491,6 +532,7 @@ pub struct PlatformProperties {
491
532
}
492
533
/// Top-level package documentation describing the forwarding pipeline config
493
534
/// Can be used to manage multiple P4 packages.
535
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
494
536
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
495
537
pub struct PkgInfo {
496
538
/// a definitive name for this configuration, e.g. switch.p4_v1.0
@@ -534,6 +576,7 @@ pub struct PkgInfo {
534
576
}
535
577
/// wrapping the enum in a message to avoid name collisions in C++, where "enum
536
578
/// values are siblings of their type, not children of it"
579
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
537
580
#[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
538
581
pub struct P4Ids {
539
582
}
@@ -619,6 +662,7 @@ pub mod p4_ids {
619
662
}
620
663
}
621
664
}
665
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
622
666
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
623
667
pub struct Preamble {
624
668
/// ids share the same number-space; e.g. table ids cannot overlap with counter
@@ -657,6 +701,7 @@ pub struct Preamble {
657
701
pub structured_annotations : :: prost:: alloc:: vec:: Vec < StructuredAnnotation > ,
658
702
}
659
703
/// used to group all extern instances of the same type in one message
704
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
660
705
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
661
706
pub struct Extern {
662
707
/// the extern_type_id is unique for a given architecture and must be in the
@@ -668,6 +713,7 @@ pub struct Extern {
668
713
#[ prost( message, repeated, tag="3" ) ]
669
714
pub instances : :: prost:: alloc:: vec:: Vec < ExternInstance > ,
670
715
}
716
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
671
717
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
672
718
pub struct ExternInstance {
673
719
#[ prost( message, optional, tag="1" ) ]
@@ -677,6 +723,7 @@ pub struct ExternInstance {
677
723
#[ prost( message, optional, tag="2" ) ]
678
724
pub info : :: core:: option:: Option < :: pbjson_types:: Any > ,
679
725
}
726
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
680
727
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
681
728
pub struct MatchField {
682
729
#[ prost( uint32, tag="1" ) ]
@@ -742,7 +789,8 @@ pub mod match_field {
742
789
}
743
790
}
744
791
}
745
- #[ derive( Clone , PartialEq , :: prost:: Oneof ) ]
792
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
793
+ #[ derive( Clone , PartialEq , :: prost:: Oneof ) ]
746
794
pub enum Match {
747
795
#[ prost( enumeration="MatchType" , tag="5" ) ]
748
796
MatchType ( i32 ) ,
@@ -757,6 +805,7 @@ pub mod match_field {
757
805
/// Arguments are matched to the id of the respective action parameter.
758
806
/// TableActionCalls may be used as the default action call of a table implementation.
759
807
/// Added in 1.4.0.
808
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
760
809
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
761
810
pub struct TableActionCall {
762
811
#[ prost( uint32, tag="1" ) ]
@@ -766,14 +815,16 @@ pub struct TableActionCall {
766
815
}
767
816
/// Nested message and enum types in `TableActionCall`.
768
817
pub mod table_action_call {
769
- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
818
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
819
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
770
820
pub struct Argument {
771
821
#[ prost( uint32, tag="2" ) ]
772
822
pub param_id : u32 ,
773
823
#[ prost( bytes="vec" , tag="3" ) ]
774
824
pub value : :: prost:: alloc:: vec:: Vec < u8 > ,
775
825
}
776
826
}
827
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
777
828
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
778
829
pub struct Table {
779
830
#[ prost( message, optional, tag="1" ) ]
@@ -861,6 +912,7 @@ pub mod table {
861
912
}
862
913
}
863
914
/// used to list all possible actions in a Table
915
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
864
916
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
865
917
pub struct ActionRef {
866
918
#[ prost( uint32, tag="1" ) ]
@@ -908,6 +960,7 @@ pub mod action_ref {
908
960
}
909
961
}
910
962
}
963
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
911
964
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
912
965
pub struct Action {
913
966
#[ prost( message, optional, tag="1" ) ]
@@ -917,7 +970,8 @@ pub struct Action {
917
970
}
918
971
/// Nested message and enum types in `Action`.
919
972
pub mod action {
920
- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
973
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
974
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
921
975
pub struct Param {
922
976
#[ prost( uint32, tag="1" ) ]
923
977
pub id : u32 ,
@@ -941,6 +995,7 @@ pub mod action {
941
995
pub structured_annotations : :: prost:: alloc:: vec:: Vec < super :: StructuredAnnotation > ,
942
996
}
943
997
}
998
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
944
999
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
945
1000
pub struct ActionProfile {
946
1001
#[ prost( message, optional, tag="1" ) ]
@@ -970,21 +1025,24 @@ pub mod action_profile {
970
1025
/// weights that can be present across all selector groups and within a
971
1026
/// single selector group respectively.
972
1027
/// Added in v1.4.0
973
- #[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
1028
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
1029
+ #[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
974
1030
pub struct SumOfWeights {
975
1031
}
976
1032
/// indicates that `size` and `max_group_size` represent the maximum number
977
1033
/// of members that can be present across all selector groups and within a
978
1034
/// single selector group respectively.
979
1035
/// Added in v1.4.0
980
- #[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
1036
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
1037
+ #[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
981
1038
pub struct SumOfMembers {
982
1039
/// the maximum weight of each individual member in a group.
983
1040
#[ prost( int32, tag="1" ) ]
984
1041
pub max_member_weight : i32 ,
985
1042
}
986
1043
/// specifies the semantics of `size` and `max_group_size` above
987
- #[ derive( Clone , Copy , PartialEq , :: prost:: Oneof ) ]
1044
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
1045
+ #[ derive( Clone , Copy , PartialEq , :: prost:: Oneof ) ]
988
1046
pub enum SelectorSizeSemantics {
989
1047
/// group size is the sum of the group's weights.
990
1048
/// Added in v1.4.0
@@ -996,6 +1054,7 @@ pub mod action_profile {
996
1054
SumOfMembers ( SumOfMembers ) ,
997
1055
}
998
1056
}
1057
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
999
1058
#[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
1000
1059
pub struct CounterSpec {
1001
1060
#[ prost( enumeration="counter_spec::Unit" , tag="1" ) ]
@@ -1038,6 +1097,7 @@ pub mod counter_spec {
1038
1097
}
1039
1098
}
1040
1099
}
1100
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
1041
1101
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
1042
1102
pub struct Counter {
1043
1103
#[ prost( message, optional, tag="1" ) ]
@@ -1051,6 +1111,7 @@ pub struct Counter {
1051
1111
#[ prost( message, optional, tag="4" ) ]
1052
1112
pub index_type_name : :: core:: option:: Option < P4NamedType > ,
1053
1113
}
1114
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
1054
1115
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
1055
1116
pub struct DirectCounter {
1056
1117
#[ prost( message, optional, tag="1" ) ]
@@ -1061,6 +1122,7 @@ pub struct DirectCounter {
1061
1122
#[ prost( uint32, tag="3" ) ]
1062
1123
pub direct_table_id : u32 ,
1063
1124
}
1125
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
1064
1126
#[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
1065
1127
pub struct MeterSpec {
1066
1128
#[ prost( enumeration="meter_spec::Unit" , tag="1" ) ]
@@ -1147,6 +1209,7 @@ pub mod meter_spec {
1147
1209
}
1148
1210
}
1149
1211
}
1212
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
1150
1213
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
1151
1214
pub struct Meter {
1152
1215
#[ prost( message, optional, tag="1" ) ]
@@ -1160,6 +1223,7 @@ pub struct Meter {
1160
1223
#[ prost( message, optional, tag="4" ) ]
1161
1224
pub index_type_name : :: core:: option:: Option < P4NamedType > ,
1162
1225
}
1226
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
1163
1227
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
1164
1228
pub struct DirectMeter {
1165
1229
#[ prost( message, optional, tag="1" ) ]
@@ -1176,6 +1240,7 @@ pub struct DirectMeter {
1176
1240
/// respectively. There can be at most one header each with these annotations.
1177
1241
/// This message captures the info contained within these special headers,
1178
1242
/// and used in p4runtime.proto to supply the metadata.
1243
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
1179
1244
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
1180
1245
pub struct ControllerPacketMetadata {
1181
1246
/// preamble.name and preamble.id will specify header type ("packet_out" or
@@ -1189,7 +1254,8 @@ pub struct ControllerPacketMetadata {
1189
1254
}
1190
1255
/// Nested message and enum types in `ControllerPacketMetadata`.
1191
1256
pub mod controller_packet_metadata {
1192
- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
1257
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
1258
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
1193
1259
pub struct Metadata {
1194
1260
#[ prost( uint32, tag="1" ) ]
1195
1261
pub id : u32 ,
@@ -1212,6 +1278,7 @@ pub mod controller_packet_metadata {
1212
1278
pub structured_annotations : :: prost:: alloc:: vec:: Vec < super :: StructuredAnnotation > ,
1213
1279
}
1214
1280
}
1281
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
1215
1282
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
1216
1283
pub struct ValueSet {
1217
1284
#[ prost( message, optional, tag="1" ) ]
@@ -1222,6 +1289,7 @@ pub struct ValueSet {
1222
1289
#[ prost( int32, tag="3" ) ]
1223
1290
pub size : i32 ,
1224
1291
}
1292
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
1225
1293
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
1226
1294
pub struct Register {
1227
1295
#[ prost( message, optional, tag="1" ) ]
@@ -1234,6 +1302,7 @@ pub struct Register {
1234
1302
#[ prost( message, optional, tag="4" ) ]
1235
1303
pub index_type_name : :: core:: option:: Option < P4NamedType > ,
1236
1304
}
1305
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
1237
1306
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
1238
1307
pub struct Digest {
1239
1308
#[ prost( message, optional, tag="1" ) ]
0 commit comments