pub struct PickerItem {Show 18 fields
pub id: String,
pub label: Text,
pub detail: Option<Text>,
pub icon: Option<Icon>,
pub role: Option<String>,
pub mark: Option<Value>,
pub dot: Option<Tone>,
pub mono: Option<bool>,
pub facts: BTreeMap<String, Value>,
pub badges: Vec<BadgeSpec>,
pub chips: Vec<Value>,
pub tone: Option<Tone>,
pub disabled: Option<Value>,
pub hits: Vec<[usize; 2]>,
pub node: Option<String>,
pub depth: Option<u32>,
pub open: Option<bool>,
pub title: Option<String>,
}Expand description
A picker catalog item.
Fields§
§id: StringItem id.
label: TextRow text.
detail: Option<Text>Text after the label.
icon: Option<Icon>Lead icon.
role: Option<String>Picks the lead icon from a role.
mark: Option<Value>An initials avatar {text, seed?}.
dot: Option<Tone>A status dot.
mono: Option<bool>Monospace label.
facts: BTreeMap<String, Value>Column values by column id.
badges: Vec<BadgeSpec>Badges after the label.
chips: Vec<Value>Role chips {text, on?, auto?, dot?}.
tone: Option<Tone>The row’s tone.
disabled: Option<Value>true or a reason: dims the row.
hits: Vec<[usize; 2]>Match ranges [from, to) in the label (UTF-16).
node: Option<String>timeline node style.
depth: Option<u32>tree depth.
open: Option<bool>tree chevron state.
title: Option<String>Row tooltip.
Implementations§
Trait Implementations§
Source§impl Clone for PickerItem
impl Clone for PickerItem
Source§impl Debug for PickerItem
impl Debug for PickerItem
Source§impl Default for PickerItem
impl Default for PickerItem
impl Eq for PickerItem
Source§impl PartialEq for PickerItem
impl PartialEq for PickerItem
Source§impl Serialize for PickerItem
impl Serialize for PickerItem
impl StructuralPartialEq for PickerItem
Auto Trait Implementations§
impl Freeze for PickerItem
impl RefUnwindSafe for PickerItem
impl Send for PickerItem
impl Sync for PickerItem
impl Unpin for PickerItem
impl UnsafeUnpin for PickerItem
impl UnwindSafe for PickerItem
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