impl_json_display_pretty

Macro impl_json_display_pretty 

Source
macro_rules! impl_json_display_pretty {
    ($($t:ty),+) => { ... };
}
Expand description

Implements the Display trait for the specified types, formatting the output as pretty-printed JSON.

This macro generates an implementation of std::fmt::Display that serializes the object to a pretty-printed JSON string. If serialization fails, it displays an error message.