pub enum ContentType {
Username,
Password,
NewUsername,
NewPassword,
EmailAddress,
PhoneNumber,
PersonFullName,
PostalAddress,
PostalCode,
CreditCardNumber,
SmsOtpCode,
}Expand description
What a text field holds, so autofill and password managers can offer to
fill it: Compose’s ContentType. Web and iOS pass it to the platform;
Android does not fill text fields yet.
Variants§
Username
Password
NewUsername
A username the person is choosing.
NewPassword
A password the person is choosing, for which a password manager can suggest a strong one.
EmailAddress
PhoneNumber
PersonFullName
PostalAddress
PostalCode
CreditCardNumber
SmsOtpCode
A one-time code from a text message.
Trait Implementations§
Source§impl Clone for ContentType
impl Clone for ContentType
impl Copy for ContentType
Source§impl Debug for ContentType
impl Debug for ContentType
impl Eq for ContentType
Source§impl Hash for ContentType
impl Hash for ContentType
Source§impl PartialEq for ContentType
impl PartialEq for ContentType
impl StructuralPartialEq for ContentType
Auto Trait Implementations§
impl Freeze for ContentType
impl RefUnwindSafe for ContentType
impl Send for ContentType
impl Sync for ContentType
impl Unpin for ContentType
impl UnsafeUnpin for ContentType
impl UnwindSafe for ContentType
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> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more