radhermit / bugbite

library and tools for bug, issue, and ticket mangling
0 stars 0 forks source link

refactor bug creation to support a builder design pattern #48

Closed radhermit closed 6 months ago

radhermit commented 6 months ago

It would be useful to simplify bug creation in native rust using a builder pattern similar to the following:

let id = service.create()
    .summary("summary")
    .component("Component")
    .product("Product")
    .description("description")
    .await?;
radhermit commented 6 months ago

Done in https://github.com/radhermit/bugbite/commit/39a9c649acbb6576cf2c661a2713b298cc7165fe.