summaryrefslogtreecommitdiffstats
path: root/src/value_builder.rs
blob: e4508432b9781e3dde80b174742ae0599ef2720e (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, default: Option<&Self::Output>) -> Result<Self::Output>;
}