use safe_builder::*;
#[derive(Builder)]
pub struct User {
id: String,
name: String,
addr: Option<String>,
}
fn main() {
let me = User::builder()
.id("1234".to_owned())
.name("bokuweb".to_owned())
.build();
}
-
Notifications
You must be signed in to change notification settings - Fork 0
raiden-rs/safe-builder
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
Repository files navigation
About
👷 safe derive builder implementation for rust structs
Resources
Stars
Watchers
Forks
Packages 0
No packages published