Skip to main content

AutofillConfiguration

Struct AutofillConfiguration 

Source
pub struct AutofillConfiguration {
    pub enabled: bool,
    pub unique_identifier: String,
    pub autofill_hints: Vec<String>,
    pub current_editing_value: TextEditingValue,
    pub hint_text: Option<String>,
}
Expand description

A collection of autofill related information that represents an AutofillClient.

Typically used in TextInputConfiguration::autofill_configuration.

Lives here with TextInputConfiguration because crate::View names that type. Flutter’s file is services/autofill.dart.

Fields§

§enabled: bool

Whether autofill should be enabled for the AutofillClient.

To retrieve a disabled AutofillConfiguration, use DISABLED.

§unique_identifier: String

A string that uniquely identifies the current AutofillClient.

The identifier needs to be unique within the AutofillScope for the AutofillClient to receive the correct autofill value.

§autofill_hints: Vec<String>

A list of strings that helps the autofill service identify the type of the AutofillClient.

See AutofillHints (services/autofill.dart).

§current_editing_value: TextEditingValue

The current TextEditingValue of the AutofillClient.

§hint_text: Option<String>

The optional hint text placed on the view that typically suggests what sort of input the field accepts, for example “enter your password here”.

If the developer does not specify any autofill_hints, the hint_text can be a useful indication to the platform autofill service.

Implementations§

Source§

impl AutofillConfiguration

Source

pub const DISABLED: AutofillConfiguration

An AutofillConfiguration that indicates the AutofillClient does not wish to be autofilled.

Source

pub fn new( unique_identifier: impl Into<String>, autofill_hints: Vec<String>, current_editing_value: TextEditingValue, ) -> AutofillConfiguration

Creates autofill related configuration information that can be sent to the platform.

Source

pub fn hint_text(self, hint_text: impl Into<String>) -> AutofillConfiguration

Dart AutofillConfiguration(hintText:).

Trait Implementations§

Source§

impl Clone for AutofillConfiguration

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 Debug for AutofillConfiguration

Source§

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

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

impl Display for AutofillConfiguration

Source§

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

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

impl Eq for AutofillConfiguration

Source§

impl Hash for AutofillConfiguration

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for AutofillConfiguration

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 AutofillConfiguration

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> 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> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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> 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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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.
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,