Struct twilight_interactions::command::ResolvedUser
source · [−]pub struct ResolvedUser {
pub resolved: User,
pub member: Option<InteractionMember>,
}Expand description
A resolved Discord user.
This struct implement CommandOption and can be used to
obtain resolved data for a given user id. The struct holds
a User and maybe an InteractionMember.
Fields
resolved: UserThe resolved user.
member: Option<InteractionMember>The resolved member, if found.
Trait Implementations
fn from_option(
value: CommandOptionValue,
_data: CommandOptionData,
resolved: Option<&CommandInteractionDataResolved>
) -> Result<Self, ParseOptionErrorType>
fn from_option(
value: CommandOptionValue,
_data: CommandOptionData,
resolved: Option<&CommandInteractionDataResolved>
) -> Result<Self, ParseOptionErrorType>
Convert a CommandOptionValue into this value.
Create a CommandOption from this type.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for ResolvedUser
impl Send for ResolvedUser
impl Sync for ResolvedUser
impl Unpin for ResolvedUser
impl UnwindSafe for ResolvedUser
Blanket Implementations
Mutably borrows from an owned value. 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