Skip to main content

AutofillHints

Struct AutofillHints 

Source
pub struct AutofillHints;
Expand description

A collection of commonly used autofill hint strings on different platforms.

Each hint is pre-defined on at least one supported platform. See their documentation for their availability on each platform, and the platform values each autofill hint corresponds to.

Implementations§

Source§

impl AutofillHints

Source

pub const ADDRESS_CITY: &str = "addressCity"

The input field expects an address locality (city/town).

This hint will be translated to the below values on different platforms:

Source

pub const ADDRESS_CITY_AND_STATE: &str = "addressCityAndState"

The input field expects a city name combined with a state name.

This hint will be translated to the below values on different platforms:

Source

pub const ADDRESS_STATE: &str = "addressState"

The input field expects a region/state.

This hint will be translated to the below values on different platforms:

Source

pub const BIRTHDAY: &str = "birthday"

The input field expects a person’s full birth date.

This hint will be translated to the below values on different platforms:

Source

pub const BIRTHDAY_DAY: &str = "birthdayDay"

The input field expects a person’s birth day(of the month).

This hint will be translated to the below values on different platforms:

Source

pub const BIRTHDAY_MONTH: &str = "birthdayMonth"

The input field expects a person’s birth month.

This hint will be translated to the below values on different platforms:

Source

pub const BIRTHDAY_YEAR: &str = "birthdayYear"

The input field expects a person’s birth year.

This hint will be translated to the below values on different platforms:

Source

pub const COUNTRY_CODE: &str = "countryCode"

The input field expects an ISO 3166-1-alpha-2 country code.

This hint will be translated to the below values on different platforms:

  • web: “country”.
  • Otherwise, the hint string will be used as-is.
Source

pub const COUNTRY_NAME: &str = "countryName"

The input field expects a country name.

This hint will be translated to the below values on different platforms:

Source

pub const CREDIT_CARD_EXPIRATION_DATE: &str = "creditCardExpirationDate"

The input field expects a credit card expiration date.

This hint will be translated to the below values on different platforms:

Source

pub const CREDIT_CARD_EXPIRATION_DAY: &str = "creditCardExpirationDay"

The input field expects a credit card expiration day.

This hint will be translated to the below values on different platforms:

Source

pub const CREDIT_CARD_EXPIRATION_MONTH: &str = "creditCardExpirationMonth"

The input field expects a credit card expiration month.

This hint will be translated to the below values on different platforms:

Source

pub const CREDIT_CARD_EXPIRATION_YEAR: &str = "creditCardExpirationYear"

The input field expects a credit card expiration year.

This hint will be translated to the below values on different platforms:

Source

pub const CREDIT_CARD_FAMILY_NAME: &str = "creditCardFamilyName"

The input field expects the holder’s last/family name as given on a credit card.

This hint will be translated to the below values on different platforms:

Source

pub const CREDIT_CARD_GIVEN_NAME: &str = "creditCardGivenName"

The input field expects the holder’s first/given name as given on a credit card.

This hint will be translated to the below values on different platforms:

Source

pub const CREDIT_CARD_MIDDLE_NAME: &str = "creditCardMiddleName"

The input field expects the holder’s middle name as given on a credit card.

This hint will be translated to the below values on different platforms:

Source

pub const CREDIT_CARD_NAME: &str = "creditCardName"

The input field expects the holder’s full name as given on a credit card.

This hint will be translated to the below values on different platforms:

  • web: “cc-name”.
  • Otherwise, the hint string will be used as-is.
Source

pub const CREDIT_CARD_NUMBER: &str = "creditCardNumber"

The input field expects a credit card number.

This hint will be translated to the below values on different platforms:

Source

pub const CREDIT_CARD_SECURITY_CODE: &str = "creditCardSecurityCode"

The input field expects a credit card security code.

This hint will be translated to the below values on different platforms:

Source

pub const CREDIT_CARD_TYPE: &str = "creditCardType"

The input field expects the type of a credit card, for example “Visa”.

This hint will be translated to the below values on different platforms:

  • web: “cc-type”.
  • Otherwise, the hint string will be used as-is.
Source

pub const EMAIL: &str = "email"

The input field expects an email address.

This hint will be translated to the below values on different platforms:

Source

pub const FAMILY_NAME: &str = "familyName"

The input field expects a person’s last/family name.

This hint will be translated to the below values on different platforms:

Source

pub const FULL_STREET_ADDRESS: &str = "fullStreetAddress"

The input field expects a street address that fully identifies a location.

This hint will be translated to the below values on different platforms:

Source

pub const GENDER: &str = "gender"

The input field expects a gender.

This hint will be translated to the below values on different platforms:

Source

pub const GIVEN_NAME: &str = "givenName"

The input field expects a person’s first/given name.

This hint will be translated to the below values on different platforms:

Source

pub const IMPP: &str = "impp"

The input field expects a URL representing an instant messaging protocol endpoint.

This hint will be translated to the below values on different platforms:

  • web: “impp”.
  • Otherwise, the hint string will be used as-is.
Source

pub const JOB_TITLE: &str = "jobTitle"

The input field expects a job title.

This hint will be translated to the below values on different platforms:

Source

pub const LANGUAGE: &str = "language"

The input field expects the preferred language of the user.

This hint will be translated to the below values on different platforms:

Source

pub const LOCATION: &str = "location"

The input field expects a location, such as a point of interest, an address,or another way to identify a location.

This hint will be translated to the below values on different platforms:

  • iOS: location.
  • Otherwise, the hint string will be used as-is.
Source

pub const MIDDLE_INITIAL: &str = "middleInitial"

The input field expects a person’s middle initial.

This hint will be translated to the below values on different platforms:

Source

pub const MIDDLE_NAME: &str = "middleName"

The input field expects a person’s middle name.

This hint will be translated to the below values on different platforms:

Source

pub const NAME: &str = "name"

The input field expects a person’s full name.

This hint will be translated to the below values on different platforms:

Source

pub const NAME_PREFIX: &str = "namePrefix"

The input field expects a person’s name prefix or title, such as “Dr.”.

This hint will be translated to the below values on different platforms:

Source

pub const NAME_SUFFIX: &str = "nameSuffix"

The input field expects a person’s name suffix, such as “Jr.”.

This hint will be translated to the below values on different platforms:

Source

pub const NEW_PASSWORD: &str = "newPassword"

The input field expects a newly created password for save/update.

This hint will be translated to the below values on different platforms:

Source

pub const NEW_USERNAME: &str = "newUsername"

The input field expects a newly created username for save/update.

This hint will be translated to the below values on different platforms:

Source

pub const NICKNAME: &str = "nickname"

The input field expects a nickname.

This hint will be translated to the below values on different platforms:

Source

pub const ONE_TIME_CODE: &str = "oneTimeCode"

The input field expects a SMS one-time code.

This hint will be translated to the below values on different platforms:

Source

pub const EMAIL_OTP_CODE: &str = "emailOTPCode"

The input field expects an email one-time code.

This hint will be translated to the below values on different platforms:

Source

pub const ORGANIZATION_NAME: &str = "organizationName"

The input field expects an organization name corresponding to the person, address, or contact information in the other fields associated with this field.

This hint will be translated to the below values on different platforms:

Source

pub const PASSWORD: &str = "password"

The input field expects a password.

This hint will be translated to the below values on different platforms:

Source

pub const PHOTO: &str = "photo"

The input field expects a photograph, icon, or other image corresponding to the company, person, address, or contact information in the other fields associated with this field.

This hint will be translated to the below values on different platforms:

  • web: “photo”.
  • Otherwise, the hint string will be used as-is.
Source

pub const POSTAL_ADDRESS: &str = "postalAddress"

The input field expects a postal address.

This hint will be translated to the below values on different platforms:

Source

pub const POSTAL_ADDRESS_EXTENDED: &str = "postalAddressExtended"

The input field expects an auxiliary address details.

This hint will be translated to the below values on different platforms:

Source

pub const POSTAL_ADDRESS_EXTENDED_POSTAL_CODE: &str = "postalAddressExtendedPostalCode"

The input field expects an extended ZIP/POSTAL code.

This hint will be translated to the below values on different platforms:

Source

pub const POSTAL_CODE: &str = "postalCode"

The input field expects a postal code.

This hint will be translated to the below values on different platforms:

Source

pub const STREET_ADDRESS_LEVEL1: &str = "streetAddressLevel1"

The first administrative level in the address. This is typically the province in which the address is located. In the United States, this would be the state. In Switzerland, the canton. In the United Kingdom, the post town.

This hint will be translated to the below values on different platforms:

Source

pub const STREET_ADDRESS_LEVEL2: &str = "streetAddressLevel2"

The second administrative level, in addresses with at least two of them. In countries with two administrative levels, this would typically be the city, town, village, or other locality in which the address is located.

This hint will be translated to the below values on different platforms:

Source

pub const STREET_ADDRESS_LEVEL3: &str = "streetAddressLevel3"

The third administrative level, in addresses with at least three administrative levels.

This hint will be translated to the below values on different platforms:

Source

pub const STREET_ADDRESS_LEVEL4: &str = "streetAddressLevel4"

The finest-grained administrative level, in addresses which have four levels.

This hint will be translated to the below values on different platforms:

Source

pub const STREET_ADDRESS_LINE1: &str = "streetAddressLine1"

The input field expects the first line of a street address.

This hint will be translated to the below values on different platforms:

Source

pub const STREET_ADDRESS_LINE2: &str = "streetAddressLine2"

The input field expects the second line of a street address.

This hint will be translated to the below values on different platforms:

Source

pub const STREET_ADDRESS_LINE3: &str = "streetAddressLine3"

The input field expects the third line of a street address.

This hint will be translated to the below values on different platforms:

Source

pub const SUBLOCALITY: &str = "sublocality"

The input field expects a sublocality.

This hint will be translated to the below values on different platforms:

  • iOS: sublocality.
  • Otherwise, the hint string will be used as-is.
Source

pub const TELEPHONE_NUMBER: &str = "telephoneNumber"

The input field expects a telephone number.

This hint will be translated to the below values on different platforms:

Source

pub const TELEPHONE_NUMBER_AREA_CODE: &str = "telephoneNumberAreaCode"

The input field expects a phone number’s area code, with a country -internal prefix applied if applicable.

This hint will be translated to the below values on different platforms:

Source

pub const TELEPHONE_NUMBER_COUNTRY_CODE: &str = "telephoneNumberCountryCode"

The input field expects a phone number’s country code.

This hint will be translated to the below values on different platforms:

Source

pub const TELEPHONE_NUMBER_DEVICE: &str = "telephoneNumberDevice"

The input field expects the current device’s phone number, usually for Sign Up / OTP flows.

This hint will be translated to the below values on different platforms:

Source

pub const TELEPHONE_NUMBER_EXTENSION: &str = "telephoneNumberExtension"

The input field expects a phone number’s internal extension code.

This hint will be translated to the below values on different platforms:

Source

pub const TELEPHONE_NUMBER_LOCAL: &str = "telephoneNumberLocal"

The input field expects a phone number without the country code and area code components.

This hint will be translated to the below values on different platforms:

Source

pub const TELEPHONE_NUMBER_LOCAL_PREFIX: &str = "telephoneNumberLocalPrefix"

The input field expects the first part of the component of the telephone number that follows the area code, when that component is split into two components.

This hint will be translated to the below values on different platforms:

Source

pub const TELEPHONE_NUMBER_LOCAL_SUFFIX: &str = "telephoneNumberLocalSuffix"

The input field expects the second part of the component of the telephone number that follows the area code, when that component is split into two components.

This hint will be translated to the below values on different platforms:

Source

pub const TELEPHONE_NUMBER_NATIONAL: &str = "telephoneNumberNational"

The input field expects a phone number without country code.

This hint will be translated to the below values on different platforms:

Source

pub const TRANSACTION_AMOUNT: &str = "transactionAmount"

The amount that the user would like for the transaction (e.g. when entering a bid or sale price).

This hint will be translated to the below values on different platforms:

Source

pub const TRANSACTION_CURRENCY: &str = "transactionCurrency"

The currency that the user would prefer the transaction to use, in ISO 4217 currency code.

This hint will be translated to the below values on different platforms:

Source

pub const URL: &str = "url"

The input field expects a URL.

This hint will be translated to the below values on different platforms:

  • iOS: URL.
  • web: “url”.
  • Otherwise, the hint string will be used as-is.
Source

pub const USERNAME: &str = "username"

The input field expects a username or an account name.

This hint will be translated to the below values on different platforms:

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,