pokeapi-macro

Attribute macro for pokeapi-model structs.

Usage

Consider the following example:

```rust use pokeapimacro::pokeapistruct; use std::marker::PhantomData;

[pokeapi_struct]

struct NamedAPIResource { description: String, url: String, #[serde(skip)] resourcetype: PhantomData<*const T>, } ```

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

```rust

[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]

pub struct NamedAPIResource { pub description: String, pub url: String, #[serde(skip)] resourcetype: PhantomData<*const T> } ```