Crate cargo_lambda_interactive
source · [−]Modules
Definitions of inquire
’s error handling
Type aliases and default implementations for functions called as formatters of a given input.
Utilities used to wrap user selections in Select and
MultiSelect
prompts.
Type aliases and default implementations for parsers called in prompts
that need to parse user input, such as Confirm or
CustomType
.
General type aliases.
UI-related definitions for rendered content.
Type aliases for functions used by prompts to validate user input before returning the values to their callers.
Macros
Built-in validator that checks whether the answer length is equal to the specified value.
Built-in validator that checks whether the answer length is smaller than or equal to the specified threshold.
Built-in validator that checks whether the answer length is larger than or equal to the specified threshold.
Built-in parser creator that checks whether the answer is able to be successfully
parsed to a given type, such as f64
.
The given type must implement the FromStr trait.
Built-in validator that checks whether the answer is not empty.
Structs
Prompt to ask the user for simple yes/no questions, commonly known by asking the user displaying the (y/n)
text.
Generic prompt suitable for when you need to parse the user input into a specific type, for example an f64
or a rust_decimal
, maybe even an uuid
.
Prompt suitable for when you need the user to select many options (including none if applicable) among a list of them.
Prompt meant for secretive text inputs.
Prompt suitable for when you need the user to select one option among many.
Standard text prompt that returns the user string input.
Enums
Display modes of the text input of a password prompt.
Functions
Check if STDIN is a TTY
Check if STDOUT is a TTY
Acquires a write lock to the global RenderConfig object and updates the inner value with the provided argument.