Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify default field value for field with type that uses generic parameters with defaults #73

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Commits on Dec 7, 2022

  1. add support for initializing builder's generic parameters with defaul…

    …t values if the field types using those generic params impl Default
    treysidechain committed Dec 7, 2022
    Configuration menu
    Copy the full SHA
    3c4aed3 View commit details
    Browse the repository at this point in the history
  2. add support for specifying default values on fields which have the fi…

    …eld's type if all generic parameters in the type have default values provided or there are no generic parameters at all
    treysidechain committed Dec 7, 2022
    Configuration menu
    Copy the full SHA
    7d22d8b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8c0be3e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    891dcbf View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4094904 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9e5ee22 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a708e3c View commit details
    Browse the repository at this point in the history
  8. ran cargo fmt

    treysidechain committed Dec 7, 2022
    Configuration menu
    Copy the full SHA
    6022ce3 View commit details
    Browse the repository at this point in the history
  9. fix bug where field types which depend on both generic params with an…

    …d without defaults were not properly suffixing the generic types currently existing on the builder
    treysidechain committed Dec 7, 2022
    Configuration menu
    Copy the full SHA
    baaf547 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    fb96cc6 View commit details
    Browse the repository at this point in the history
  11. restore necessity for the #[builder(default)] field attribute to be a…

    …pplied in order for a field to have a default value set
    treysidechain committed Dec 7, 2022
    Configuration menu
    Copy the full SHA
    7ac7198 View commit details
    Browse the repository at this point in the history