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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
//! Macroses for [uller](https://crates.io/crates/uller)
//! check doc!
use TokenStream;
use impl_qller;
use ;
/// Macros for implement [MakeLink](uller::MakeLink) in query style by using struct as prompt
/// ### Example
/// ```
/// use uller::prelude;
///
/// #[derive(Qller)]
/// #[url = "http://127.0.0.1:1234/"]
/// struct Test {
/// #[name = "f"] // rename to "f"
/// f111: String,
/// #[name = "v"] // rename to "v"
/// #[pos = 0] // move it in first position
/// v222: String
/// }
/// ```
/// will convert to http://127.0.0.1:1234/?v={value}&f={value}
///
/// note: position starts with 0 pos like an array.
/// Macros for download `<T>` using struct which implement [MakeLink] ([Qller]) and [JsonDownload]
/// ### Example
/// ```
/// use uller::prelude;
///
/// #[derive(Qller, Juller)]
/// #[output = "TestOut"]
/// #[url = "http://127.0.0.1:41112/"]
/// struct Test {
/// f: String,
/// v: String,
/// }
///
/// #[derive(Deserialize, Debug)]
/// struct TestOut {
/// field: String,
/// }
///
/// async fn convert(st: &Test) -> TestOut {
/// st.download().await.unwrap()
/// // or
/// st.download_verbose().await.unwrap()
/// }
/// ```
/// Macros for download [Bytes] using struct which implement [MakeLink] ([Qller]) and [BytesDownload]
/// ### Example
/// ```
/// use uller::prelude;
///
/// #[derive(Qller, Buller)]
/// #[url = "http://127.0.0.1:41112/"]
/// struct Test {
/// f: String,
/// v: String,
/// }
///
/// async fn convert(st: &Test) -> bytes::Bytes {
/// st.download().await.unwrap()
/// // or
/// st.download_verbose().await.unwrap()
/// }
/// ```