Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ffi/dnp3-schema/src/master/read_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ pub(crate) fn define(
)?
.doc("Information about the object header and specific variation")?
.end_fields()?
.add_full_initializer("init")?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Adding a full initializer to the header_info struct enhances its usability and testability. This is a good change to improve the API.
Consider adding documentation to the initializer to explain its purpose and usage.

Suggested change
.add_full_initializer("init")?
.add_full_initializer("init")? // Add a full initializer for easy object construction

.build()?;

let read_type = define_read_type_enum(lib)?;
Expand Down