pub struct Input {
pub pos: Pos,
pub length: u16,
pub name: String,
pub value: String,
pub default_value: String,
pub allowed_characters: Option<Vec<char>>,
pub mask_char: Option<char>,
pub select: Select,
pub select_static: Vec<(String, String)>,
}
Expand description
Generic input field, supporting masked input (password) and number fields.
Also supports ’select’able fields, where the user can press F4 to get a list of predefined values.
Fields§
§pos: Pos
§length: u16
§name: String
§value: String
§default_value: String
§allowed_characters: Option<Vec<char>>
§mask_char: Option<char>
§select: Select
§select_static: Vec<(String, String)>
Implementations§
Trait Implementations§
Source§impl Ord for Input
impl Ord for Input
Source§impl PartialOrd for Input
impl PartialOrd for Input
impl Eq for Input
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.