worktable_macros 0.9.0

Proc-macro companion crate for worktable: the worktable! macro and its derives. Formerly published as worktable_codegen.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use proc_macro2::{Ident, TokenStream};
use std::collections::HashMap;

#[derive(Debug, Clone)]
pub struct PrimaryKey {
    pub ident: Ident,
    pub values: HashMap<Ident, TokenStream>,
}

#[derive(Debug, Clone, Copy, PartialEq)]
pub enum GeneratorType {
    None,
    Autoincrement,
    Custom,
}