@@ -181,6 +181,7 @@ pub struct Metric {
181
181
/// reported value type for the data points, as well as the relatationship to
182
182
/// the time interval over which they are reported.
183
183
#[ prost( oneof = "metric::Data" , tags = "5, 7, 9, 10, 11" ) ]
184
+ #[ cfg_attr( feature = "with-serde" , serde( flatten) ) ]
184
185
pub data : :: core:: option:: Option < metric:: Data > ,
185
186
}
186
187
/// Nested message and enum types in `Metric`.
@@ -325,6 +326,7 @@ pub struct NumberDataPoint {
325
326
/// The value itself. A point is considered invalid when one of the recognized
326
327
/// value fields is not present inside this oneof.
327
328
#[ prost( oneof = "number_data_point::Value" , tags = "4, 6" ) ]
329
+ #[ cfg_attr( feature = "with-serde" , serde( flatten) ) ]
328
330
pub value : :: core:: option:: Option < number_data_point:: Value > ,
329
331
}
330
332
/// Nested message and enum types in `NumberDataPoint`.
@@ -674,6 +676,7 @@ pub struct Exemplar {
674
676
/// considered invalid when one of the recognized value fields is not present
675
677
/// inside this oneof.
676
678
#[ prost( oneof = "exemplar::Value" , tags = "3, 6" ) ]
679
+ #[ cfg_attr( feature = "with-serde" , serde( flatten) ) ]
677
680
pub value : :: core:: option:: Option < exemplar:: Value > ,
678
681
}
679
682
/// Nested message and enum types in `Exemplar`.
0 commit comments