module StructGen
Defined in:
struct-gen.crConstant Summary
-
FULL_VERSION =
"#{VERSION}-#{GIT_BRANCH} (#{GIT_COMMIT_SHORT})"
-
FULL_VERSION_LONG_COMMIT =
"#{VERSION}-#{GIT_BRANCH} (#{GIT_COMMIT})"
-
GIT_BRANCH =
"(HEAD detached at v0.1.2)"
-
GIT_COMMIT =
"bae7f9bcede6f052f4e6381d14a776b37b9cce19"
-
GIT_COMMIT_SHORT =
"bae7f9b"
-
VERSION =
"0.1.2"
Macro Summary
- attach_field_annotation(key_value)
- attach_serialization_includes
- generate_struct(struct_name, *fields)
- generate_with_field(base_module, field_class, field_name, field_type, field_key, is_required)
- generate_with_optional_field(base_module, field_class, field_name, field_type, field_key)
- generate_with_required_field(base_module, field_class, field_name, field_type, field_key)
Macro Detail
macro generate_with_field(base_module, field_class, field_name, field_type, field_key, is_required)
#
macro generate_with_optional_field(base_module, field_class, field_name, field_type, field_key)
#
macro generate_with_required_field(base_module, field_class, field_name, field_type, field_key)
#