Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 412 Bytes

README.md

File metadata and controls

22 lines (18 loc) · 412 Bytes

[WIP] safe-builder

Continuous Integration

Examples

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();
}