pub struct GlanceAction {
pub label: String,
pub target: Expr,
}Expand description
The single primary action on a glance card.
Fields§
§label: StringAction label shown on the card.
target: ExprStable action target/control token as Scene data.
Implementations§
Trait Implementations§
Source§impl Clone for GlanceAction
impl Clone for GlanceAction
Source§fn clone(&self) -> GlanceAction
fn clone(&self) -> GlanceAction
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 GlanceAction
impl Debug for GlanceAction
Source§impl PartialEq for GlanceAction
impl PartialEq for GlanceAction
impl StructuralPartialEq for GlanceAction
Auto Trait Implementations§
impl Freeze for GlanceAction
impl RefUnwindSafe for GlanceAction
impl Send for GlanceAction
impl Sync for GlanceAction
impl Unpin for GlanceAction
impl UnsafeUnpin for GlanceAction
impl UnwindSafe for GlanceAction
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