1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
pub use hyper::method::Method as RequestMethod;
pub use hyper::status::StatusCode;
pub use json::Map as JsonMap;
pub use json::Number as JsonNumber;
pub use json::Value as JsonValue;
use chrono::{DateTime as ChronoDateTime, UTC};
string_enums! {
#[derive(Clone, Debug)]
pub enum FilterLevel {
:None("none"),
:Low("low"),
:Medium("medium");
:Custom(_),
}
#[derive(Clone, Debug)]
pub enum With {
:User("user"),
:Following("following");
:Custom(_),
}
#[derive(Clone, Debug)]
pub enum WithheldScope {
:Status("status"),
:User("user");
:Custom(_),
}
}
pub type DateTime = ChronoDateTime<UTC>;
impl ::std::default::Default for FilterLevel {
fn default() -> Self {
FilterLevel::None
}
}