Enum serenity::model::interactions::application_command::ResolvedTarget [−][src]
#[non_exhaustive]
#[repr(u8)]
pub enum ResolvedTarget {
User(User, Option<PartialMember>),
Message(Message),
}
Expand description
The resolved value of a ApplicationCommandInteractionData::target_id
.
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.
User(User, Option<PartialMember>)
Message(Message)
Tuple Fields
0: Message
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 ResolvedTarget
impl Send for ResolvedTarget
impl Sync for ResolvedTarget
impl Unpin for ResolvedTarget
impl UnwindSafe for ResolvedTarget
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
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more