Skip to main content

AutoFill

Enum AutoFill 

Source
pub enum AutoFill {
Show 27 variants Default, Off, Username, Password, NewPassword, OneTimeCode, Email, Tel, Name, GivenName, FamilyName, MiddleName, Nickname, Organization, StreetAddress, AddressLine1, AddressLine2, City, Region, PostalCode, Country, CreditCardNumber, CreditCardExpiration, CreditCardSecurityCode, CreditCardName, Url, Birthdate,
}
Expand description

What an input holds, for the system’s autofill and suggestions (autoComplete, textContentType).

Variants§

§

Default

The platform decides.

§

Off

No autofill.

§

Username

Account name.

§

Password

Existing password.

§

NewPassword

A password being chosen.

§

OneTimeCode

A code from a text message or e-mail.

§

Email

E-mail address.

§

Tel

Phone number.

§

Name

Full name.

§

GivenName

First name.

§

FamilyName

Last name.

§

MiddleName

Middle name.

§

Nickname

Nickname.

§

Organization

Company.

§

StreetAddress

Street address, all lines.

§

AddressLine1

First address line.

§

AddressLine2

Second address line.

§

City

City.

§

Region

State or region.

§

PostalCode

Postal code.

§

Country

Country.

§

CreditCardNumber

Credit card number.

§

CreditCardExpiration

Credit card expiry date.

§

CreditCardSecurityCode

Credit card security code.

§

CreditCardName

Name on the credit card.

§

Url

Web address.

§

Birthdate

Birth date.

Implementations§

Source§

impl AutoFill

Source

pub fn parse(name: &str) -> Option<Self>

Parses React Native’s autoComplete values and iOS’s textContentType names.

Trait Implementations§

Source§

impl Clone for AutoFill

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for AutoFill

Source§

impl Debug for AutoFill

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for AutoFill

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for AutoFill

Source§

impl HostValue for AutoFill

autoComplete values or iOS’s textContentType names; others are the platform’s default (and a warning).

Source§

fn ts_type(types: &mut TsTypes) -> String

Either list of names: the decoder takes both.

Source§

fn decode<I: HostInput>(input: &I, cx: &mut HostCx) -> Option<Self>

The value in input.
Source§

impl IntoReactive<AutoFill> for AutoFill

Source§

impl PartialEq for AutoFill

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for AutoFill

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.