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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static str = "password"

The input field expects a password.

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

Source

pub const PHOTO: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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: &'static 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,