Expand description
Parameter types for click-rs.
This module provides the TypeConverter trait and all built-in types for
converting and validating command-line arguments.
Structs§
- Bool
Type - A boolean parameter type.
- Choice
- A parameter type that restricts values to a fixed set of choices.
- Completion
Item - A shell completion item.
- Date
Time Type - A datetime parameter type that parses ISO 8601 format strings.
- File
Type - A parameter type for files.
- Float
Range - A floating-point type restricted to a range of values.
- Float
Type - A floating-point parameter type.
- IntRange
- An integer type restricted to a range of values.
- IntType
- An integer parameter type.
- Lazy
File - A wrapper around a file that supports lazy opening and stdin/stdout.
- Path
Type - A parameter type for file system paths with optional validation.
- String
Type - A string parameter type (the default).
- Tuple
Type - A composite parameter type that collects multiple values with different types.
- Unprocessed
Type - A type that passes through values without any processing.
- Uuid
Type - A UUID parameter type.
Enums§
- File
Mode - The mode for opening a file.
- Tuple
Value - A converted tuple value with dynamic types.
Constants§
- BOOL
- Singleton instance for boolean type.
- FLOAT
- Singleton instance for float type.
- INT
- Singleton instance for integer type.
- STRING
- Singleton instance for string type.
- UNPROCESSED
- Singleton instance for unprocessed type.
- UUID
- Singleton instance for UUID type.
Traits§
- Type
Converter - Trait for parameter types that convert and validate command-line values.
Type Aliases§
- Boxed
Type Converter - A boxed parameter type for runtime polymorphism.