derive-id 0.1.2

Simple NewType ID's specifically tailored to integrate with Async GraphQL and Diesel
Documentation
derive-id-0.1.2 has been yanked.

Derive ID

License Cargo Documentation

Simple NewType ID's specifically tailored to integrate with Async GraphQL and Diesel. Combines well with [diesel::associations::BelongsTo]

derive_id! {
  #[table_name = "users"]
  #[graphql(name = "UserID")]
  pub struct UserId(#[column_name = "id"] i32);
}