1
1
// This file is @generated by prost-build.
2
2
/// Unique identifier for each task.
3
- #[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
3
+ #[ derive( Clone , Copy , PartialEq , Eq , Hash , :: prost:: Message ) ]
4
4
pub struct Id {
5
5
/// The unique identifier's concrete value.
6
6
#[ prost( uint64, tag = "1" ) ]
7
7
pub id : u64 ,
8
8
}
9
9
/// A Rust source code location.
10
- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
10
+ #[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Message ) ]
11
11
pub struct Location {
12
12
/// The file path
13
13
#[ prost( string, optional, tag = "1" ) ]
@@ -23,21 +23,21 @@ pub struct Location {
23
23
pub column : :: core:: option:: Option < u32 > ,
24
24
}
25
25
/// Unique identifier for metadata.
26
- #[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
26
+ #[ derive( Clone , Copy , PartialEq , Eq , Hash , :: prost:: Message ) ]
27
27
pub struct MetaId {
28
28
/// The unique identifier's concrete value.
29
29
#[ prost( uint64, tag = "1" ) ]
30
30
pub id : u64 ,
31
31
}
32
32
/// Unique identifier for spans.
33
- #[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
33
+ #[ derive( Clone , Copy , PartialEq , Eq , Hash , :: prost:: Message ) ]
34
34
pub struct SpanId {
35
35
/// The unique identifier's concrete value.
36
36
#[ prost( uint64, tag = "1" ) ]
37
37
pub id : u64 ,
38
38
}
39
39
/// A message representing a key-value pair of data associated with a `Span`
40
- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
40
+ #[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Message ) ]
41
41
pub struct Field {
42
42
/// Metadata for the task span that the field came from.
43
43
#[ prost( message, optional, tag = "8" ) ]
@@ -58,7 +58,7 @@ pub mod field {
58
58
///
59
59
/// This is either represented as a string, or as an index into a `Metadata`'s
60
60
/// array of field name strings.
61
- #[ derive( Clone , PartialEq , :: prost:: Oneof ) ]
61
+ #[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Oneof ) ]
62
62
pub enum Name {
63
63
/// The string representation of the name.
64
64
#[ prost( string, tag = "1" ) ]
@@ -69,7 +69,7 @@ pub mod field {
69
69
NameIdx ( u64 ) ,
70
70
}
71
71
/// The value of the key-value pair.
72
- #[ derive( Clone , PartialEq , :: prost:: Oneof ) ]
72
+ #[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Oneof ) ]
73
73
pub enum Value {
74
74
/// A value serialized to a string using `fmt::Debug`.
75
75
#[ prost( string, tag = "3" ) ]
@@ -118,7 +118,7 @@ pub struct RegisterMetadata {
118
118
/// Nested message and enum types in `RegisterMetadata`.
119
119
pub mod register_metadata {
120
120
/// One metadata element registered since the last update.
121
- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
121
+ #[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Message ) ]
122
122
pub struct NewMetadata {
123
123
/// Unique identifier for `metadata`.
124
124
#[ prost( message, optional, tag = "1" ) ]
@@ -129,7 +129,7 @@ pub mod register_metadata {
129
129
}
130
130
}
131
131
/// Metadata associated with a span or event.
132
- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
132
+ #[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Message ) ]
133
133
pub struct Metadata {
134
134
/// The name of the span or event.
135
135
#[ prost( string, tag = "1" ) ]
@@ -262,7 +262,7 @@ pub mod metadata {
262
262
/// Contains stats about objects that can be polled. Currently these can be:
263
263
/// - tasks that have been spawned
264
264
/// - async operations on resources that are performed within the context of a task
265
- #[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
265
+ #[ derive( Clone , Copy , PartialEq , Eq , Hash , :: prost:: Message ) ]
266
266
pub struct PollStats {
267
267
/// The total number of times this object has been polled.
268
268
#[ prost( uint64, tag = "1" ) ]
@@ -310,7 +310,7 @@ pub struct PollStats {
310
310
/// indicating how many permits they are trying to acquire vs how many are acquired.
311
311
/// These values may change over time. Therefore, they live in the runtime stats rather
312
312
/// than the static data describing the entity.
313
- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
313
+ #[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Message ) ]
314
314
pub struct Attribute {
315
315
/// The key-value pair for the attribute
316
316
#[ prost( message, optional, tag = "1" ) ]
0 commit comments