Skip to content

Conversation

@PacificBird
Copy link
Contributor

@PacificBird PacificBird commented Jan 3, 2026

PR Info

Closes #2834. As it stands right now this is very much a draft. I am unable to execute my unit test as running cargo test --workspace fails to compile, although cargo check finds no errors.

To-do:

  • Figure out how to get tests to compile
  • Clean up the macro implementation
  • Workshop the method name
  • Discuss if we want to split this up into an optional derive macro on Model instead of being derived by default in ModelEx.

Breaking Changes

  • A method model_from_required is added to ModelEx in the respective derive macro.

@PacificBird PacificBird changed the title first draft Add method to create Models from only required fields Jan 3, 2026
@tyt2y3
Copy link
Member

tyt2y3 commented Jan 3, 2026

sorry for the trouble running tests, I've added some instructions in 51dd40b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AttrNotSet error when using .try_into_model() even though the attribute listed is optional

2 participants