pub enum ParamType {
Text,
Choice(Vec<String>),
Username,
Number {
min: Option<i64>,
max: Option<i64>,
},
}Expand description
The kind of value a parameter accepts.
Variants§
Text
Free-form text (no validation beyond presence).
Choice(Vec<String>)
One of a fixed set of allowed values.
Username
An online username — TUI shows the mention picker.
Number
An integer, optionally bounded.
Trait Implementations§
impl StructuralPartialEq for ParamType
Auto Trait Implementations§
impl Freeze for ParamType
impl RefUnwindSafe for ParamType
impl Send for ParamType
impl Sync for ParamType
impl Unpin for ParamType
impl UnsafeUnpin for ParamType
impl UnwindSafe for ParamType
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