const_string

Macro const_string 

Source
macro_rules! const_string {
    ($name:ident = $value:literal) => { ... };
}
Expand description

Macro for creating compile-time constant string types

This creates a zero-sized type that serializes/deserializes to a specific string value. Useful for JSON schema type fields that must always be a specific constant.