Skip to content

Commit

Permalink
autogenerate links to vk.com docs in macros
Browse files Browse the repository at this point in the history
  • Loading branch information
kstep committed Feb 26, 2016
1 parent 37fba6c commit c99ec24
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ macro_rules! request {
) => {
#[derive(Debug, PartialEq, Clone, Copy, Eq)]
$(#[$attr])*
#[doc = "The <a href=\"https://vk.com/dev/"]
#[doc = $method_name]
#[doc = "\">"]
#[doc = $method_name]
#[doc = "</a> API request."]
pub struct $struct_name;

impl ::api::Request for $struct_name {
Expand Down Expand Up @@ -252,6 +257,11 @@ macro_rules! request {
) => {
#[derive(Debug, PartialEq, Clone)]
$(#[$attr])*
#[doc = "The <a href=\"https://vk.com/dev/"]
#[doc = $method_name]
#[doc = "\">"]
#[doc = $method_name]
#[doc = "</a> API request."]
pub struct $struct_name {
$($param_name: $param_type,)*
}
Expand Down Expand Up @@ -473,6 +483,11 @@ macro_rules! request_ref {
) => {
#[derive(Debug, PartialEq, Clone)]
$(#[$attr])*
#[doc = "The <a href=\"https://vk.com/dev/"]
#[doc = $method_name]
#[doc = "\">"]
#[doc = $method_name]
#[doc = "</a> API request."]
pub struct $struct_name<'a> {
$($param_name: $param_type,)*
$($param_name_lt: &'a $param_type_lt,)*
Expand Down

0 comments on commit c99ec24

Please sign in to comment.