pub trait Builder<T: Buildable> {
type Error: Error;
// Required method
fn build(self) -> Result<T, Self::Error>;
}
Expand description
Helper trait for builder
pub trait Builder<T: Buildable> {
type Error: Error;
// Required method
fn build(self) -> Result<T, Self::Error>;
}
Helper trait for builder