pub enum ContentPurpose {
Show 14 variants
Normal = 0,
Alpha = 1,
Digits = 2,
Number = 3,
Phone = 4,
Url = 5,
Email = 6,
Name = 7,
Password = 8,
Pin = 9,
Date = 10,
Time = 11,
Datetime = 12,
Terminal = 13,
}
Expand description
Map to text_input_unstable_v3.content_purpose
values
use rs::imservice::ContentPurpose;
assert_eq!(ContentPurpose::Alpha as u32, 1);
Variants§
Normal = 0
Alpha = 1
Digits = 2
Number = 3
Phone = 4
Url = 5
Email = 6
Name = 7
Password = 8
Pin = 9
Date = 10
Time = 11
Datetime = 12
Terminal = 13
Trait Implementations§
Source§impl Clone for ContentPurpose
impl Clone for ContentPurpose
Source§fn clone(&self) -> ContentPurpose
fn clone(&self) -> ContentPurpose
Returns a copy of the value. Read more
1.0.0 · 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 ContentPurpose
impl Debug for ContentPurpose
Source§impl PartialEq for ContentPurpose
impl PartialEq for ContentPurpose
Source§impl TryFrom<u32> for ContentPurpose
impl TryFrom<u32> for ContentPurpose
impl Copy for ContentPurpose
impl StructuralPartialEq for ContentPurpose
Auto Trait Implementations§
impl Freeze for ContentPurpose
impl RefUnwindSafe for ContentPurpose
impl Send for ContentPurpose
impl Sync for ContentPurpose
impl Unpin for ContentPurpose
impl UnwindSafe for ContentPurpose
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