pub struct PickerInputProvider { /* private fields */ }Trait Implementations§
Source§impl Clone for PickerInputProvider
impl Clone for PickerInputProvider
Source§fn clone(&self) -> PickerInputProvider
fn clone(&self) -> PickerInputProvider
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 PickerInputProvider
impl DataProvider for PickerInputProvider
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 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 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 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 PickerInputProvider
impl Debug for PickerInputProvider
Source§impl Default for PickerInputProvider
impl Default for PickerInputProvider
Source§fn default() -> PickerInputProvider
fn default() -> PickerInputProvider
Returns the “default value” for a type. Read more
impl Eq for PickerInputProvider
Source§impl PartialEq for PickerInputProvider
impl PartialEq for PickerInputProvider
Source§fn eq(&self, other: &PickerInputProvider) -> bool
fn eq(&self, other: &PickerInputProvider) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PickerInputProvider
Auto Trait Implementations§
impl Freeze for PickerInputProvider
impl RefUnwindSafe for PickerInputProvider
impl Send for PickerInputProvider
impl Sync for PickerInputProvider
impl Unpin for PickerInputProvider
impl UnsafeUnpin for PickerInputProvider
impl UnwindSafe for PickerInputProvider
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<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
Compare self to
key and return true if they are equal.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