Skip to content

👷 safe derive builder implementation for rust structs

Notifications You must be signed in to change notification settings

raiden-rs/safe-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

👷 safe derive builder implementation for rust structs

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages