Skip to main content

BuildableTo

Trait BuildableTo 

Source
pub trait BuildableTo<Args> {
    // Required method
    fn build(self) -> Args;
}
Expand description

Marker trait implemented by typed-builder’s “all-required-fields-set” builder state. The codegen emits a blanket impl over the parameter shape typed-builder produces, so .emit() only compiles when every required setter has been called. Spec 12 § 3.6.

Required Methods§

Source

fn build(self) -> Args

Convert the builder into the event’s args struct.

Implementors§