Enum serenity::model::interactions::message_component::InteractionMessage [−][src]
pub enum InteractionMessage { Regular(Message), Ephemeral(EphemeralMessage), }
This is supported on crate feature
unstable_discord_api
only.Expand description
The MessageComponentInteraction::message
field.
Variants
Tuple Fields of Regular
0: Message
Tuple Fields of Ephemeral
Implementations
Whether the message is ephemeral.
Converts this to an ephemeral message, if it is one.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for InteractionMessage
impl Send for InteractionMessage
impl Sync for InteractionMessage
impl Unpin for InteractionMessage
impl UnwindSafe for InteractionMessage
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self