Skip to content

Make CreateOpts fields public #263

Open
@skeet70

Description

Right now you either enumerate all the fields on a struct, or use default to get only defaults. Neither of those is super useful, most likely you just want a few fields set at a time and everything else default. Making fields public would enable the normal pattern of

GroupCreateOpts {
    name: Some("word up".to_string()),
    ..Default::default()
}

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions