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
50
51
52
/// Easily create [`Request`].
///
/// ```
/// use eight::embedded::messaging::Request;
///
/// assert_eq!(Request::Flush, eight::request!(Flush));
/// assert_eq!(Request::Get("test".into()), eight::request!(Get, "test"));
/// assert_eq!(Request::Set("test".into(), 5.to_string()), eight::request!(Set, "test", 5));
/// ```
///
/// [`Request`]: ./enum.Request.html
/// Easily create [`std::collections::HashMap<String, String>`].
///
/// ```
/// use std::collections::HashMap;
///
/// let mut hard_way = HashMap::new();
///
/// hard_way.insert("key".to_string(), "hello".to_string());
/// hard_way.insert("other".to_string(), (3.14).to_string());
///
/// let easy_way = eight::env!(key: "hello", other: 3.14);
///
/// assert_eq!(hard_way, easy_way);
/// ```