[][src]Crate orma_derive

This crate provides Orma's derive macros.

Example

This code runs with edition 2018
 use orma::*;
 use orma_derive::DbData;
 use serde_derive::Serialize;

 #[pk(field_1 = "field1", field_2 = "field2")]
 #[table("table_name")]
 #[derive(Serialize, DbData)]
 struct TestData {
     field_1: String,
     field_2: String,
     some_other_filed: String,
 }

Derive Macros

DbData