summaryrefslogtreecommitdiffstats
path: root/src/value_builder.rs
blob: d7e045bb33b19f782d237f2c1777c9f8acf39945 (plain)
1
2
3
4
5
6
7
8
9
use crate::error::Result;

/// A thing that can build a value by interactively asking the user a question
pub trait ValueBuilder {
    type Output: Sized;

    fn build_value(&self, question: &str) -> Result<Self::Output>;
}