pokeapi-macro 1.0.1

Attribute macro for `pokeapi-model` structs.
Documentation

Usage

Consider the following example:

use pokeapi-macro::pokeapi_struct;

#[pokeapi_struct]
struct NamedAPIResource {
  description: String,
  url: String,
}

This attribute will output the struct with required derived traits and visibility:

#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct NamedAPIResource {
  pub description: String,
  pub url: String,
}