Macro dbase::dbase_record

source ·
macro_rules! dbase_record {
    (
        $(#[derive($($derives:meta),*)])?
        $vis:vis struct $name:ident {
            $( $visf:vis $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
    }
);