9 releases

0.1.8 Aug 22, 2021
0.1.7 Feb 27, 2021
0.1.6 Apr 10, 2020

#196 in #interactive

Download history 3/week @ 2024-02-16 8/week @ 2024-02-23 4/week @ 2024-03-01 54/week @ 2024-03-29

54 downloads per month
Used in ibuilder

MIT license

67KB
1.5K SLoC

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


lib.rs:

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.

Dependencies

~1.5MB
~35K SLoC