serde_version

Macro version_map_static

Source
macro_rules! version_map_static {
    ($(#[$attr:meta])* $id:ident = { $($body:tt)* }) => { ... };
    ($(#[$attr:meta])* pub $id:ident = { $($body:tt)* }) => { ... };
    ($(#[$attr:meta])* pub ($($vis:tt)+) $id:ident = { $($body:tt)* }) => { ... };
}
Expand description

Generates a static field initialized with specified VersionMap.

version_map_static! {
    TEST_1 = { A => 2, B => 3, }
}