ibuilder_derive

Crates.ioibuilder_derive
lib.rsibuilder_derive
version0.1.8
sourcesrc
created_at2020-04-03 19:27:16.872047
updated_at2021-08-22 12:27:05.373147
descriptionInteractive builder for Rust types
homepagehttps://github.com/edomora97/ibuilder
repositoryhttps://github.com/edomora97/ibuilder
max_upload_size
id226023
size66,372
Edoardo Morassutto (edomora97)

documentation

README

ibuilder_derive

crates.io Docs

See the documentation of the ibuilder create for the details, you probably are looking for that.

ibuilder derive macro

Usage:

#[derive(IBuilder)]
struct Example {
    field1: i64,
    #[ibuilder(default = "something")]
    field2: String,
}

Will implement the trait ibuilder::Buildable for Example, prodiding the builder() method for getting a ibuilder::Builder.

It will also implement a private struct for keeping the state of the builder and implement the NewBuildableValue trait for Example, allowing it to be inside a fields of other derived types.

License: MIT

Commit count: 70

cargo fmt