Expand description
lombok-macros
A Rust procedural macro collection providing Lombok-like functionality. Automatically generates getters/setters with field-level visibility control, custom Debug implementations with field skipping, and Display trait implementations. Supports structs, enums, generics and lifetimes.
Derive Macrosยง
- Custom
Debug - A procedural macro that implements the
std::fmt::Debug
trait for a type, with support for the#[debug(skip)]
attribute to skip specific fields. - Data
- This is an example of how to use the
Lombok
procedural macro withget
,get_mut
, andset
attributes. - Display
Debug - A procedural macro that implements the
std::fmt::Display
trait for a type, using the standard debug format ({:?}
) for formatting. - Display
Debug Format - A procedural macro that implements the
std::fmt::Display
trait for a type, using the detailed debug format ({:#?}
) for formatting. - Getter
- This is an example of how to use the
Lombok
procedural macro withget
attributes. - Getter
Mut - This is an example of how to use the
Lombok
procedural macro withget_mut
attributes. - Setter
- This is an example of how to use the
Lombok
procedural macro withset
attributes.