Skip to content

support for default value for optional argument without custom setting #305

Description

@sehz

Reference: #231.

I have many use cases where to provide default value for optional argument. Reason for optional argument is that I want to provide reasonable default value but to disable if need to be. For example,

#[derive(Builder)]
pub struct MyGenerator {    
    #[builder(into, required, default = Some("default_world"))]
    default_export_world_name: Option<String>
}

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting on authorWaiting for action from the author of the issue/PR

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions