pub struct EuvAutoCompleteOption {
pub value: &'static str,
pub label: &'static str,
}Expand description
One suggestion offered by the euv_auto_complete component.
The value is what lands in the field when the suggestion is picked,
while the label is what the user reads in the suggestion list.
Fields§
§value: &'static strThe value written into the field when the option is picked.
label: &'static strThe text shown in the suggestion list.
Implementations§
Source§impl EuvAutoCompleteOption
impl EuvAutoCompleteOption
pub fn get_value(&self) -> &'static str
pub fn get_mut_value(&mut self) -> &mut &'static str
pub fn set_value(&mut self, val: &'static str) -> &mut Self
pub fn get_label(&self) -> &'static str
pub fn get_mut_label(&mut self) -> &mut &'static str
pub fn set_label(&mut self, val: &'static str) -> &mut Self
Trait Implementations§
Source§impl Clone for EuvAutoCompleteOption
impl Clone for EuvAutoCompleteOption
impl Copy for EuvAutoCompleteOption
Source§impl Debug for EuvAutoCompleteOption
impl Debug for EuvAutoCompleteOption
Auto Trait Implementations§
impl Freeze for EuvAutoCompleteOption
impl RefUnwindSafe for EuvAutoCompleteOption
impl Send for EuvAutoCompleteOption
impl Sync for EuvAutoCompleteOption
impl Unpin for EuvAutoCompleteOption
impl UnsafeUnpin for EuvAutoCompleteOption
impl UnwindSafe for EuvAutoCompleteOption
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