component_model 0.17.0

Revolutionary type-safe component assignment for Rust. Build complex objects with zero boilerplate using derive macros and type-driven field setting. Perfect for configuration builders, fluent APIs, and object composition patterns.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[ allow( unused_imports ) ]
use super :: *;
#[ allow( unused_imports ) ]
use component_model ::Assign;

//

#[ derive( Default, PartialEq, Debug, component_model ::Assign ) ]
// #[ debug ]
struct Person 
{
  age: i32,
  name: String,
}

//

include!("./only_test/component_assign.rs");