Skip to main content

column_names

Macro column_names 

Source
macro_rules! column_names {
    ($type:ty, $kind:literal, { $($value:ident => $name:literal),+ $(,)? }) => { ... };
}
Expand description

Give the enum $type, whose values are Copy, the name each value has in coven’s columns: name() gives it, FromStr reads it, and ToSql and FromSql bind and read it as SQL text. $kind names the kind of value, such as “member role”, that UnknownName reports when FromStr finds no value with the text’s name.