impl_json_display

Macro impl_json_display 

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

Implements the Display trait for the specified types, formatting the output as compact JSON.

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