-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
The idea is to add some configuration options to the struct attributes.
This might look like this:
#[derive(InterStruct)]
#[merge("crate::Target", strict)]
pub struct Source {
pub normal: String,
pub optional: Option<String>,
}
For now these are the planned configuration flags:
-
strictEnforces that all fields (unless ignored) are mapped to the target struct.
A compiler error will be thrown if any fields cannot be found on the target struct.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request