flodgatt/src/query.rs

20 lines
380 B
Rust
Raw Normal View History

//! 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)]
2019-04-19 01:02:29 +02:00
pub struct Auth {
pub access_token: String,
}