Skip to main content

orma_obj

Attribute Macro orma_obj 

Source
#[orma_obj]
Expand description

This crate provides derive macros for orma.

§Example

 use serde::{Serialize, Deserialize};

 #[orma_derive::orma_obj(table = "table_name")]
 #[derive(Serialize, Deserialize)]
 struct TestData {
     field_1: String,
     field_2: String,
     some_other_filed: String,
 }