#[non_exhaustive]pub enum ActionRowComponent {
Button(Button),
SelectMenu(SelectMenu),
InputText(InputText),
}
Expand description
A component which can be inside of an ActionRow
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for ActionRowComponent
impl Clone for ActionRowComponent
Source§fn clone(&self) -> ActionRowComponent
fn clone(&self) -> ActionRowComponent
Returns a copy of the value. Read more
1.0.0 · 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 ActionRowComponent
impl Debug for ActionRowComponent
Source§impl<'de> Deserialize<'de> for ActionRowComponent
impl<'de> Deserialize<'de> for ActionRowComponent
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Button> for ActionRowComponent
impl From<Button> for ActionRowComponent
Source§impl From<SelectMenu> for ActionRowComponent
impl From<SelectMenu> for ActionRowComponent
Source§fn from(component: SelectMenu) -> Self
fn from(component: SelectMenu) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ActionRowComponent
impl RefUnwindSafe for ActionRowComponent
impl Send for ActionRowComponent
impl Sync for ActionRowComponent
impl Unpin for ActionRowComponent
impl UnwindSafe for ActionRowComponent
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