lombok-macros 2.0.28

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.
Documentation
/// Error message indicating that a field must have a name.
pub(crate) const FIELD_SHOULD_HAVE_A_NAME: &str = "Field should have a name";

/// Error message indicating that #[derive(Data)] is only supported for structs.
pub(crate) const UNSUPPORTED_DATA_DERIVE: &str = "#[derive(Data)] is only supported for structs.";

/// Error message indicating that #[derive(New)] is only supported for structs.
pub(crate) const UNSUPPORTED_NEW_DERIVE: &str = "#[derive(New)] is only supported for structs.";

/// The Option type identifier.
pub(crate) const OPTION_TYPE: &str = "Option";

/// The Result type identifier.
pub(crate) const RESULT_TYPE: &str = "Result";

/// Prefix for getter methods.
pub(crate) const GET_METHOD_PREFIX: &str = "get_";

/// Prefix for mutable getter methods.
pub(crate) const GET_MUT_METHOD_PREFIX: &str = "get_mut_";

/// Prefix for setter methods.
pub(crate) const SET_METHOD_PREFIX: &str = "set_";

/// The string prefix used for raw identifiers.
pub(crate) const RAW_IDENT_PREFIX: &str = "r#";

/// The try_get method prefix.
pub(crate) const TRY_GET_METHOD_PREFIX: &str = "try_";