pub struct AutocompleteResponse {
pub response: Response,
pub selected: Option<String>,
pub is_open: bool,
}Expand description
Result of showing the autocomplete widget
Fields§
§response: ResponseThe underlying text edit response
selected: Option<String>The selected suggestion if the user picked one
is_open: boolWhether the dropdown is currently open
Auto Trait Implementations§
impl !RefUnwindSafe for AutocompleteResponse
impl !UnwindSafe for AutocompleteResponse
impl Freeze for AutocompleteResponse
impl Send for AutocompleteResponse
impl Sync for AutocompleteResponse
impl Unpin for AutocompleteResponse
impl UnsafeUnpin for AutocompleteResponse
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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