pub struct TextInputProvider { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for TextInputProvider
impl Clone for TextInputProvider
Source§fn clone(&self) -> TextInputProvider
fn clone(&self) -> TextInputProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl DataProvider for TextInputProvider
impl DataProvider for TextInputProvider
Source§fn field_count(&self) -> usize
fn field_count(&self) -> usize
How many fields in the form
Source§fn field_name(&self, _index: usize) -> &str
fn field_name(&self, _index: usize) -> &str
Get field label/name
Source§fn field_value(&self, index: usize) -> &str
fn field_value(&self, index: usize) -> &str
Get field value
Source§fn set_field_value(&mut self, index: usize, value: String)
fn set_field_value(&mut self, index: usize, value: String)
Set field value (library calls this when text changes)
Source§fn capture_content(&self) -> Vec<String>
fn capture_content(&self) -> Vec<String>
Capture the full editable content as a flat list of field values, for
undo/redo history. The default collects every field value in order. Read more
Source§fn restore_content(&mut self, fields: &[String])
fn restore_content(&mut self, fields: &[String])
Restore content previously produced by
DataProvider::capture_content. Read moreSource§fn supports_suggestions(&self, _field_index: usize) -> bool
fn supports_suggestions(&self, _field_index: usize) -> bool
Check if field supports suggestions (optional)
Source§fn suggestion_trigger(&self, _field_index: usize) -> SuggestionTrigger
fn suggestion_trigger(&self, _field_index: usize) -> SuggestionTrigger
When should suggestions be triggered for a field? (optional)
Only used when suggestions feature is enabled
Source§fn suggestion_query(
&self,
field_index: usize,
_cursor_char: usize,
) -> Option<SuggestionQuery>
fn suggestion_query( &self, field_index: usize, _cursor_char: usize, ) -> Option<SuggestionQuery>
Build the active suggestion query for the current field/cursor. Read more
Source§fn fetch_suggestions_sync(
&self,
_field_index: usize,
_query: &str,
) -> Vec<SuggestionItem>
fn fetch_suggestions_sync( &self, _field_index: usize, _query: &str, ) -> Vec<SuggestionItem>
Fetch suggestions synchronously (for auto-trigger feature)
Returns empty vec by default. Override to enable auto-trigger.
Source§fn accept_suggestion(
&mut self,
field_index: usize,
_cursor_char: usize,
suggestion: &SuggestionItem,
_query: &SuggestionQuery,
) -> usize
fn accept_suggestion( &mut self, field_index: usize, _cursor_char: usize, suggestion: &SuggestionItem, _query: &SuggestionQuery, ) -> usize
Apply the selected suggestion to the underlying field content and
return the desired cursor character position after insertion.
Source§fn display_value(&self, _index: usize) -> Option<&str>
fn display_value(&self, _index: usize) -> Option<&str>
Get display value (for password masking, etc.) - optional
Source§fn validation_config(&self, _field_index: usize) -> Option<ValidationConfig>
fn validation_config(&self, _field_index: usize) -> Option<ValidationConfig>
Get validation configuration for a field (optional)
Only available when the ‘validation’ feature is enabled
Source§fn is_computed_field(&self, _field_index: usize) -> bool
fn is_computed_field(&self, _field_index: usize) -> bool
Check if field is computed (display-only, skip in navigation)
Default: not computed
Source§impl Debug for TextInputProvider
impl Debug for TextInputProvider
Source§impl Default for TextInputProvider
impl Default for TextInputProvider
Source§fn default() -> TextInputProvider
fn default() -> TextInputProvider
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TextInputProvider
impl RefUnwindSafe for TextInputProvider
impl Send for TextInputProvider
impl Sync for TextInputProvider
impl Unpin for TextInputProvider
impl UnsafeUnpin for TextInputProvider
impl UnwindSafe for TextInputProvider
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more