pub struct ListSwipeAction {
pub label: String,
pub destructive: bool,
pub tint: Option<Color>,
pub symbol: Option<Symbol>,
}Expand description
One offered swipe action (docs/list.md): pure data. The pieces layer keeps the handlers;
the backend answers a tap through ListSwipe::perform by index into the offer.
Fields§
§label: StringThe word on the button, already localized (a toolkit cannot translate).
destructive: boolDestructive styling: the platform’s red.
tint: Option<Color>Explicit button color; None = the platform’s default for the style.
symbol: Option<Symbol>A glyph for the button where the platform draws one: above the label on macOS, in place of it on iOS (docs/list.md).
Trait Implementations§
Source§impl Clone for ListSwipeAction
impl Clone for ListSwipeAction
Source§fn clone(&self) -> ListSwipeAction
fn clone(&self) -> ListSwipeAction
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 ListSwipeAction
impl Debug for ListSwipeAction
Source§impl PartialEq for ListSwipeAction
impl PartialEq for ListSwipeAction
impl StructuralPartialEq for ListSwipeAction
Auto Trait Implementations§
impl Freeze for ListSwipeAction
impl RefUnwindSafe for ListSwipeAction
impl Send for ListSwipeAction
impl Sync for ListSwipeAction
impl Unpin for ListSwipeAction
impl UnsafeUnpin for ListSwipeAction
impl UnwindSafe for ListSwipeAction
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