tweetust_macros-0.0.2 has been yanked.
client!
client!(
StatusesClient,
[ // APIs
(
show, // method name,
Get, // HTTP method
"https://api.twitter.com/1.1/statuses/show/{}.json",
// required parameters
[id: String, ...],
// optional parameters
[trim_user: bool, ...],
Status // return type
),
...
]
);
If the API endpoint has "{}", inserts the first argument there.
#paramenum! Make Pascal Case enum members and implement fmt::String.
paramenum!(EnumName { a, b, c });
#[id_eq]
Implement PartialEq and Eq by comparing the IDs.