Macro dbase::dbase_record [−][src]
macro_rules! dbase_record {
($(#[derive($($derives : meta), *)]) ? struct $name : ident
{ $($field_name : ident : $field_type : ty), + $(,) ? }) => { ... };
}
Expand description
macro to define a struct that implements the ReadableRecord and WritableRecord
Examples
dbase_record!(
#[derive(Debug)]
struct UserRecord {
first_name: String,
last_name: String,
age: f64
}
);