pub struct ListRow {
pub title: String,
pub subtitle: String,
pub right_icon_bg: Option<Color>,
}Expand description
Owned text and optional trailing decoration for one list row.
Empty strings are valid and still produce text commands. right_icon_bg
is a color for a trailing rounded square, not an icon identifier; None
omits that command.
§Examples
use ailloli_ui_core::Color;
use ailloli_ui_widgets::controls::list::ListRow;
let row = ListRow {
title: "Project".into(),
subtitle: "Updated now".into(),
right_icon_bg: Some(Color::WHITE),
};
assert_eq!(row.title, "Project");Fields§
§title: StringPrimary line of text.
subtitle: StringSecondary line of text.
right_icon_bg: Option<Color>Optional fill color for the 28 × 28 trailing rounded square.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ListRow
impl RefUnwindSafe for ListRow
impl Send for ListRow
impl Sync for ListRow
impl Unpin for ListRow
impl UnwindSafe for ListRow
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.