forked from paul/sinoptik
Derive PartialEq for most item/sample structs
This commit is contained in:
parent
5d37c5b5ee
commit
29b79c720d
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue