#[non_exhaustive]pub struct AccessoryWidget {
pub action: Option<Action>,
/* private fields */
}Expand description
One or more interactive widgets that appear at the bottom of a message. For details, see Add interactive widgets at the bottom of a message.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.action: Option<Action>The type of action.
Implementations§
Source§impl AccessoryWidget
impl AccessoryWidget
Trait Implementations§
Source§impl Clone for AccessoryWidget
impl Clone for AccessoryWidget
Source§fn clone(&self) -> AccessoryWidget
fn clone(&self) -> AccessoryWidget
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 AccessoryWidget
impl Debug for AccessoryWidget
Source§impl Default for AccessoryWidget
impl Default for AccessoryWidget
Source§fn default() -> AccessoryWidget
fn default() -> AccessoryWidget
Returns the “default value” for a type. Read more
Source§impl Message for AccessoryWidget
impl Message for AccessoryWidget
Source§impl PartialEq for AccessoryWidget
impl PartialEq for AccessoryWidget
impl StructuralPartialEq for AccessoryWidget
Auto Trait Implementations§
impl Freeze for AccessoryWidget
impl RefUnwindSafe for AccessoryWidget
impl Send for AccessoryWidget
impl Sync for AccessoryWidget
impl Unpin for AccessoryWidget
impl UnsafeUnpin for AccessoryWidget
impl UnwindSafe for AccessoryWidget
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