Derive Macro PrettyPrint

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

The struct can be pretty printed.

use crud_pretty_struct_derive::PrettyPrint;
#[derive(PrettyPrint)]
struct Foo {
    #[pretty(color="green")]
    a: u32,
    #[pretty(skip_none)]
    b: Option<String>,
    #[pretty(formatter=crud_pretty_struct::formatters::bool_check_formatter)]
    c: bool,
    #[pretty(is_pretty)]
    d: OtherPrettyStruct
}