pub struct SelectProps<T>{
pub values: Rc<Vec<SelectItem<T>>>,
pub selected: T,
pub on_select: Callback<T>,
pub is_autosize: bool,
pub label: Option<Cow<'static, str>>,
pub id: Option<&'static str>,
pub class: Option<String>,
pub wrapper_class: Option<String>,
}Fields§
§values: Rc<Vec<SelectItem<T>>>§selected: T§on_select: Callback<T>§is_autosize: bool§label: Option<Cow<'static, str>>§id: Option<&'static str>§class: Option<String>§wrapper_class: Option<String>Trait Implementations§
Source§impl<T> PartialEq for SelectProps<T>
impl<T> PartialEq for SelectProps<T>
Auto Trait Implementations§
impl<T> Freeze for SelectProps<T>where
T: Freeze,
impl<T> !RefUnwindSafe for SelectProps<T>
impl<T> !Send for SelectProps<T>
impl<T> !Sync for SelectProps<T>
impl<T> Unpin for SelectProps<T>where
T: Unpin,
impl<T> !UnwindSafe for SelectProps<T>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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> 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 moreSource§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.