pub struct NumberConfig {
pub min: Option<i64>,
pub max: Option<i64>,
pub error_message: Option<String>,
pub max_attempts: Option<usize>,
}Expand description
Configuration for numeric input prompts.
Fields§
§min: Option<i64>Minimum allowed value.
max: Option<i64>Maximum allowed value.
error_message: Option<String>Optional error message on invalid input or out of range.
max_attempts: Option<usize>Maximum retry attempts; None = unlimited.
Trait Implementations§
Source§impl Clone for NumberConfig
impl Clone for NumberConfig
Source§fn clone(&self) -> NumberConfig
fn clone(&self) -> NumberConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NumberConfig
impl Debug for NumberConfig
Auto Trait Implementations§
impl Freeze for NumberConfig
impl RefUnwindSafe for NumberConfig
impl Send for NumberConfig
impl Sync for NumberConfig
impl Unpin for NumberConfig
impl UnsafeUnpin for NumberConfig
impl UnwindSafe for NumberConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more