pub struct ListItemProps {
pub title: String,
pub subtitle: String,
pub detail: String,
pub icon: Option<Icon>,
pub icon_tint: Option<Color>,
pub checked: bool,
}Expand description
A list row’s standard content (kinds::LIST_ITEM, docs/list.md “List items”). Empty
text means the part is absent.
Fields§
§title: String§subtitle: StringA second line under the title, in the platform’s secondary style.
detail: StringTrailing text (a count, a value), in the platform’s secondary style.
icon: Option<Icon>The leading glyph: a symbol or a bundled image.
icon_tint: Option<Color>The glyph’s color; None takes the platform’s own (template glyphs follow the
foreground, the tint color on UIKit).
checked: boolA trailing check mark: the platform’s selected-option mark (UIKit’s checkmark accessory, a Material check icon), announced as checked.
Trait Implementations§
Source§impl Clone for ListItemProps
impl Clone for ListItemProps
Source§fn clone(&self) -> ListItemProps
fn clone(&self) -> ListItemProps
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 ListItemProps
impl Debug for ListItemProps
Source§impl Default for ListItemProps
impl Default for ListItemProps
Source§fn default() -> ListItemProps
fn default() -> ListItemProps
Returns the “default value” for a type. Read more
Source§impl PartialEq for ListItemProps
impl PartialEq for ListItemProps
impl StructuralPartialEq for ListItemProps
Auto Trait Implementations§
impl Freeze for ListItemProps
impl RefUnwindSafe for ListItemProps
impl Send for ListItemProps
impl Sync for ListItemProps
impl Unpin for ListItemProps
impl UnsafeUnpin for ListItemProps
impl UnwindSafe for ListItemProps
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