github-rs 0.7.0

Pure Rust bindings to the Github API
//! Access the (notifications)[https://developer.github.com/v3/activity/notifications/]
//! portion of the GitHub API
imports!();
use crate::client::GetQueryBuilder;

new_type!(
    Notifications
    NotificationsThreads
    NotificationsThreadsId
    NotificationsThreadsIdSubscription
);

from!(
    @GetQueryBuilder
       -> Notifications = "notifications"
    @Notifications
       -> NotificationsThreads = "threads"
    @NotificationsThreads
       => NotificationsThreadsId
    @NotificationsThreadsId
       -> NotificationsThreadsIdSubscription = "subscription"
);

impl_macro!(
    @Notifications
        |=> threads -> NotificationsThreads
        |
    @NotificationsThreads
       |
       |=> id -> NotificationsThreadsId = thread_id
    @NotificationsThreadsId
       |=> subscription -> NotificationsThreadsIdSubscription
       |
);

exec!(Notifications);
exec!(NotificationsThreadsId);
exec!(NotificationsThreadsIdSubscription);