pub struct DropdownOptionSpec {
pub value: String,
pub label: String,
pub disabled: bool,
}Expand description
One <option>’s metadata mirrored onto the dropdown header (markup
order). Carried on DropdownButton so the closed combobox can
run keyboard interaction - Up/Down value stepping and type-ahead -
before the panel body (and its DropdownOptionButton entities)
has ever mounted (<if> bodies spawn lazily on first open).
Fields§
§value: Stringvalue= attribute - what gets written to the bound signal.
label: Stringlabel= attribute (falls back to value in the parser) - what
type-ahead matches against, mirroring Qt’s text-based matching.
disabled: booldisabled="true" on the source <option> - skipped by value
stepping and type-ahead.
Trait Implementations§
Source§impl Clone for DropdownOptionSpec
impl Clone for DropdownOptionSpec
Source§fn clone(&self) -> DropdownOptionSpec
fn clone(&self) -> DropdownOptionSpec
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 Debug for DropdownOptionSpec
impl Debug for DropdownOptionSpec
Source§impl PartialEq for DropdownOptionSpec
impl PartialEq for DropdownOptionSpec
Source§fn eq(&self, other: &DropdownOptionSpec) -> bool
fn eq(&self, other: &DropdownOptionSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DropdownOptionSpec
impl StructuralPartialEq for DropdownOptionSpec
Auto Trait Implementations§
impl Freeze for DropdownOptionSpec
impl RefUnwindSafe for DropdownOptionSpec
impl Send for DropdownOptionSpec
impl Sync for DropdownOptionSpec
impl Unpin for DropdownOptionSpec
impl UnsafeUnpin for DropdownOptionSpec
impl UnwindSafe for DropdownOptionSpec
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,
§impl<T> DynEq for T
impl<T> DynEq for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.