pub struct IconAction {
pub act: String,
pub icon: Option<Icon>,
pub title: Option<String>,
}Expand description
An icon button of a message or an attachment (actions).
Fields§
§act: StringThe action a click runs.
icon: Option<Icon>The icon (default the act’s own).
title: Option<String>The tooltip and accessible name (default the act, capitalized).
Implementations§
Trait Implementations§
Source§impl Clone for IconAction
impl Clone for IconAction
Source§impl Debug for IconAction
impl Debug for IconAction
Source§impl Default for IconAction
impl Default for IconAction
impl Eq for IconAction
Source§impl PartialEq for IconAction
impl PartialEq for IconAction
Source§impl Serialize for IconAction
impl Serialize for IconAction
impl StructuralPartialEq for IconAction
Auto Trait Implementations§
impl Freeze for IconAction
impl RefUnwindSafe for IconAction
impl Send for IconAction
impl Sync for IconAction
impl Unpin for IconAction
impl UnsafeUnpin for IconAction
impl UnwindSafe for IconAction
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.