11// This file is @generated by prost-build.
22/// Unique identifier for each task.
3- #[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
3+ #[ derive( Clone , Copy , PartialEq , Eq , Hash , :: prost:: Message ) ]
44pub struct Id {
55 /// The unique identifier's concrete value.
66 #[ prost( uint64, tag = "1" ) ]
77 pub id : u64 ,
88}
99/// A Rust source code location.
10- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
10+ #[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Message ) ]
1111pub struct Location {
1212 /// The file path
1313 #[ prost( string, optional, tag = "1" ) ]
@@ -23,21 +23,21 @@ pub struct Location {
2323 pub column : :: core:: option:: Option < u32 > ,
2424}
2525/// Unique identifier for metadata.
26- #[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
26+ #[ derive( Clone , Copy , PartialEq , Eq , Hash , :: prost:: Message ) ]
2727pub struct MetaId {
2828 /// The unique identifier's concrete value.
2929 #[ prost( uint64, tag = "1" ) ]
3030 pub id : u64 ,
3131}
3232/// Unique identifier for spans.
33- #[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
33+ #[ derive( Clone , Copy , PartialEq , Eq , Hash , :: prost:: Message ) ]
3434pub struct SpanId {
3535 /// The unique identifier's concrete value.
3636 #[ prost( uint64, tag = "1" ) ]
3737 pub id : u64 ,
3838}
3939/// 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 ) ]
4141pub struct Field {
4242 /// Metadata for the task span that the field came from.
4343 #[ prost( message, optional, tag = "8" ) ]
@@ -58,7 +58,7 @@ pub mod field {
5858 ///
5959 /// This is either represented as a string, or as an index into a `Metadata`'s
6060 /// array of field name strings.
61- #[ derive( Clone , PartialEq , :: prost:: Oneof ) ]
61+ #[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Oneof ) ]
6262 pub enum Name {
6363 /// The string representation of the name.
6464 #[ prost( string, tag = "1" ) ]
@@ -69,7 +69,7 @@ pub mod field {
6969 NameIdx ( u64 ) ,
7070 }
7171 /// The value of the key-value pair.
72- #[ derive( Clone , PartialEq , :: prost:: Oneof ) ]
72+ #[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Oneof ) ]
7373 pub enum Value {
7474 /// A value serialized to a string using `fmt::Debug`.
7575 #[ prost( string, tag = "3" ) ]
@@ -118,7 +118,7 @@ pub struct RegisterMetadata {
118118/// Nested message and enum types in `RegisterMetadata`.
119119pub mod register_metadata {
120120 /// One metadata element registered since the last update.
121- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
121+ #[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Message ) ]
122122 pub struct NewMetadata {
123123 /// Unique identifier for `metadata`.
124124 #[ prost( message, optional, tag = "1" ) ]
@@ -129,7 +129,7 @@ pub mod register_metadata {
129129 }
130130}
131131/// Metadata associated with a span or event.
132- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
132+ #[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Message ) ]
133133pub struct Metadata {
134134 /// The name of the span or event.
135135 #[ prost( string, tag = "1" ) ]
@@ -262,7 +262,7 @@ pub mod metadata {
262262/// Contains stats about objects that can be polled. Currently these can be:
263263/// - tasks that have been spawned
264264/// - 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 ) ]
266266pub struct PollStats {
267267 /// The total number of times this object has been polled.
268268 #[ prost( uint64, tag = "1" ) ]
@@ -310,7 +310,7 @@ pub struct PollStats {
310310/// indicating how many permits they are trying to acquire vs how many are acquired.
311311/// These values may change over time. Therefore, they live in the runtime stats rather
312312/// than the static data describing the entity.
313- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
313+ #[ derive( Clone , PartialEq , Eq , Hash , :: prost:: Message ) ]
314314pub struct Attribute {
315315 /// The key-value pair for the attribute
316316 #[ prost( message, optional, tag = "1" ) ]
0 commit comments