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: boolWhether autofill should be enabled for the AutofillClient.
To retrieve a disabled AutofillConfiguration, use DISABLED.
unique_identifier: StringA 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: TextEditingValueThe 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
impl AutofillConfiguration
Sourcepub const DISABLED: AutofillConfiguration
pub const DISABLED: AutofillConfiguration
An AutofillConfiguration that indicates the AutofillClient does not
wish to be autofilled.
Sourcepub fn new(
unique_identifier: impl Into<String>,
autofill_hints: Vec<String>,
current_editing_value: TextEditingValue,
) -> AutofillConfiguration
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.
Sourcepub fn hint_text(self, hint_text: impl Into<String>) -> AutofillConfiguration
pub fn hint_text(self, hint_text: impl Into<String>) -> AutofillConfiguration
Dart AutofillConfiguration(hintText:).
Trait Implementations§
Source§impl Clone for AutofillConfiguration
impl Clone for AutofillConfiguration
Source§impl Debug for AutofillConfiguration
impl Debug for AutofillConfiguration
Source§impl Display for AutofillConfiguration
impl Display for AutofillConfiguration
impl Eq for AutofillConfiguration
Source§impl Hash for AutofillConfiguration
impl Hash for AutofillConfiguration
Source§impl PartialEq for AutofillConfiguration
impl PartialEq for AutofillConfiguration
impl StructuralPartialEq for AutofillConfiguration
Auto Trait Implementations§
impl Freeze for AutofillConfiguration
impl RefUnwindSafe for AutofillConfiguration
impl Send for AutofillConfiguration
impl Sync for AutofillConfiguration
impl Unpin for AutofillConfiguration
impl UnsafeUnpin for AutofillConfiguration
impl UnwindSafe for AutofillConfiguration
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.