mirror of https://github.com/mastodon/flodgatt
18 lines
474 B
Rust
18 lines
474 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
#[serde(deny_unknown_fields)]
|
|
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
|
|
pub(crate) struct Tag {
|
|
pub(crate) name: String,
|
|
pub(crate) url: String,
|
|
pub(crate) history: Option<Vec<History>>,
|
|
}
|
|
|
|
#[serde(deny_unknown_fields)]
|
|
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
|
|
pub(crate) struct History {
|
|
pub(crate) day: String,
|
|
pub(crate) uses: String,
|
|
pub(crate) accounts: String,
|
|
}
|