inquire 0.9.4

inquire is a library for building interactive prompts on terminals
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::Text;

/// Configuration settings used in the execution of a TextPrompt.
#[derive(Copy, Clone, Debug)]
pub struct TextConfig {
    /// Page size of the suggestion list, if it exists.
    pub page_size: usize,
}

impl From<&Text<'_, '_>> for TextConfig {
    fn from(value: &Text<'_, '_>) -> Self {
        Self {
            page_size: value.page_size,
        }
    }
}