mirror of https://github.com/mastodon/flodgatt
20 lines
380 B
Rust
20 lines
380 B
Rust
//! Validate query prarams with type checking
|
|
use serde_derive::Deserialize;
|
|
|
|
#[derive(Deserialize, Debug)]
|
|
pub struct Media {
|
|
pub only_media: String,
|
|
}
|
|
#[derive(Deserialize, Debug)]
|
|
pub struct Hashtag {
|
|
pub tag: String,
|
|
}
|
|
#[derive(Deserialize, Debug)]
|
|
pub struct List {
|
|
pub list: i64,
|
|
}
|
|
#[derive(Deserialize, Debug)]
|
|
pub struct Auth {
|
|
pub access_token: String,
|
|
}
|