pub trait ErrorBuilderParent<T> {
type AfterRecord;
// Required method
fn finish_child_builder(
self,
child_result: Result<T, AccumulatedError>,
) -> Self::AfterRecord;
}
Expand description
Parent builders can have child builders to simulate nested structures.
Required Associated Types§
Sourcetype AfterRecord
type AfterRecord
The parent builder after the child builder finished.
Due to the strongly typed nature of most builders it is common that after the final result of the child builder is recorded the parent is turned into another type.
Required Methods§
Sourcefn finish_child_builder(
self,
child_result: Result<T, AccumulatedError>,
) -> Self::AfterRecord
fn finish_child_builder( self, child_result: Result<T, AccumulatedError>, ) -> Self::AfterRecord
Record the final result of the child builder.