flodgatt/src/response/event/checked_event/tag.rs

18 lines
474 B
Rust
Raw Normal View History

use serde::{Deserialize, Serialize};
#[serde(deny_unknown_fields)]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
pub(super) struct Tag {
2020-04-29 22:05:57 +02:00
pub(super) name: String,
pub(super) url: String,
pub(super) history: Option<Vec<History>>,
}
#[serde(deny_unknown_fields)]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
2020-04-29 22:05:57 +02:00
pub(super) struct History {
pub(super) day: String,
pub(super) uses: String,
pub(super) accounts: String,
}