Derive PartialEq for most item/sample structs

This commit is contained in:
Paul van Tilburg 2022-05-08 12:53:09 +02:00
parent 5d37c5b5ee
commit 29b79c720d
Signed by untrusted user: paul
GPG Key ID: C6DE073EDA9EEC4D
4 changed files with 4 additions and 4 deletions

View File

@ -294,7 +294,7 @@ impl MapsRefresh for MapsHandle {
/// A Buienradar map sample.
///
/// This represents a value at a given time.
#[derive(Clone, Debug, Serialize)]
#[derive(Clone, Debug, PartialEq, Serialize)]
#[serde(crate = "rocket::serde")]
pub(crate) struct Sample {
/// The time(stamp) of the forecast.

View File

@ -36,7 +36,7 @@ struct Row {
}
/// The Buienradar API precipitation data item.
#[derive(Clone, Debug, Deserialize, Serialize)]
#[derive(Clone, Debug, Deserialize, PartialEq, Serialize)]
#[serde(crate = "rocket::serde", try_from = "Row")]
pub(crate) struct Item {
/// The time(stamp) of the forecast.

View File

@ -14,7 +14,7 @@ use crate::position::Position;
use crate::Metric;
/// The combined data item.
#[derive(Clone, Debug, Serialize)]
#[derive(Clone, Debug, PartialEq, Serialize)]
#[serde(crate = "rocket::serde")]
pub(crate) struct Item {
/// The time(stamp) of the forecast.

View File

@ -24,7 +24,7 @@ struct Container {
}
/// The Luchtmeetnet API data item.
#[derive(Clone, Debug, Deserialize, Serialize)]
#[derive(Clone, Debug, Deserialize, PartialEq, Serialize)]
#[serde(crate = "rocket::serde")]
pub(crate) struct Item {
/// The time(stamp) of the forecast.