inter-struct icon indicating copy to clipboard operation
inter-struct copied to clipboard

Struct wide configuration

Open Nukesor opened this issue 2 years ago • 0 comments

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:

  • [ ] strict Enforces 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.

Nukesor avatar Apr 28 '22 11:04 Nukesor