2019-05-01 00:41:13 +02:00
|
|
|
//! Validate query prarams with type checking
|
2019-04-15 20:22:44 +02:00
|
|
|
use serde_derive::Deserialize;
|
|
|
|
|
2019-04-27 02:00:11 +02:00
|
|
|
#[derive(Deserialize, Debug)]
|
2019-04-15 20:22:44 +02:00
|
|
|
pub struct Media {
|
|
|
|
pub only_media: String,
|
|
|
|
}
|
2019-04-27 02:00:11 +02:00
|
|
|
#[derive(Deserialize, Debug)]
|
2019-04-15 20:22:44 +02:00
|
|
|
pub struct Hashtag {
|
|
|
|
pub tag: String,
|
|
|
|
}
|
2019-04-27 02:00:11 +02:00
|
|
|
#[derive(Deserialize, Debug)]
|
2019-04-15 20:22:44 +02:00
|
|
|
pub struct List {
|
2019-04-21 15:21:44 +02:00
|
|
|
pub list: i64,
|
2019-04-15 20:22:44 +02:00
|
|
|
}
|
2019-04-27 02:00:11 +02:00
|
|
|
#[derive(Deserialize, Debug)]
|
2019-04-19 01:02:29 +02:00
|
|
|
pub struct Auth {
|
|
|
|
pub access_token: String,
|
|
|
|
}
|