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
//! Access the Misc portion of the GitHub API
imports!();
use client::{GetQueryBuilder, Executor};

new_type!(
    Emojis
    Events
    Feeds
    Meta
    RateLimit
);

from!(
    @GetQueryBuilder
       -> Emojis = "emojis"
       -> Events = "events"
       -> Feeds = "feeds"
       -> Meta = "meta"
       -> RateLimit = "rate_limit"
    @Emojis
       => Executor
    @Events
       => Executor
    @Feeds
       => Executor
    @Meta
       => Executor
    @RateLimit
       => Executor
);

impl_macro!(
    @Emojis
        |
        |-> execute
    @Events
        |
        |-> execute
    @Feeds
        |
        |-> execute
    @Meta
        |
        |-> execute
    @RateLimit
        |
        |-> execute
);