#[repr(i32)]pub enum TextInputContentType {
Normal = 0,
Alpha = 1,
Digits = 2,
Pin = 3,
Number = 4,
Email = 5,
Url = 6,
Name = 7,
Password = 8,
Social = 9,
Search = 10,
}Expand description
The kind of content a text input expects, which lets the platform show an appropriate (on-screen) keyboard.
Variants§
Normal = 0
Default keyboard for the user’s selected input method.
Alpha = 1
Display a keyboard that only has alphabetic characters.
Digits = 2
Display a numeric keypad only capable of numbers, i.e. phone number.
Pin = 3
Display a numeric keypad for inputting a PIN.
Number = 4
Display a numeric keypad capable of inputting numbers including decimal separator and sign.
Email = 5
Display a keyboard for entering an email address.
Url = 6
Display a keyboard for entering a URL.
Name = 7
Display a keyboard for entering a person’s name.
Password = 8
Display a keyboard for entering sensitive data.
Social = 9
Display a keyboard suitable for #tag and @mentions. Not available on every platform, will fallback to a suitable keyboard when not available.
Search = 10
Display a keyboard for entering a search keyword.
Trait Implementations§
Source§impl Clone for TextInputContentType
impl Clone for TextInputContentType
impl Copy for TextInputContentType
Source§impl Debug for TextInputContentType
impl Debug for TextInputContentType
Source§impl Default for TextInputContentType
impl Default for TextInputContentType
impl Eq for TextInputContentType
Source§impl Hash for TextInputContentType
impl Hash for TextInputContentType
Source§impl MarkupTyped for TextInputContentType
impl MarkupTyped for TextInputContentType
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
Source§impl PartialEq for TextInputContentType
impl PartialEq for TextInputContentType
impl StructuralPartialEq for TextInputContentType
Auto Trait Implementations§
impl Freeze for TextInputContentType
impl RefUnwindSafe for TextInputContentType
impl Send for TextInputContentType
impl Sync for TextInputContentType
impl Unpin for TextInputContentType
impl UnsafeUnpin for TextInputContentType
impl UnwindSafe for TextInputContentType
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more