Enum discord_flows::model::component::ActionRowComponent
source · pub enum ActionRowComponent {
Button(Button),
SelectMenu(SelectMenu),
InputText(InputText),
}
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: D
) -> Result<ActionRowComponent, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<ActionRowComponent, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Button> for ActionRowComponent
impl From<Button> for ActionRowComponent
source§fn from(component: Button) -> ActionRowComponent
fn from(component: Button) -> ActionRowComponent
Converts to this type from the input type.
source§impl From<SelectMenu> for ActionRowComponent
impl From<SelectMenu> for ActionRowComponent
source§fn from(component: SelectMenu) -> ActionRowComponent
fn from(component: SelectMenu) -> ActionRowComponent
Converts to this type from the input type.
source§impl Serialize for ActionRowComponent
impl Serialize for ActionRowComponent
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
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