Skip to main content

Kv

Derive Macro Kv 

Source
#[derive(Kv)]
{
    // Attributes available to this derive:
    #[kv]
}
Expand description

Derive macro for parsing KEY=VALUE formatted input into a struct.

Available when the default derive feature is enabled. See the crate-level documentation and the macro’s own documentation for usage. Derive macro for parsing KEY=VALUE formatted input.

Generates a parse method that parses the struct from a string containing KEY=VALUE pairs separated by newlines.

See the module documentation for detailed usage.