pub enum CommandArgumentValue {
String(String),
Integer(i64),
Number(f64),
Channel(ChannelId),
User(UserId),
Role(RoleId),
Boolean(bool),
}Variants§
Implementations§
Source§impl CommandArgumentValue
impl CommandArgumentValue
pub fn from_resolved( resolved: &ApplicationCommandInteractionDataOptionValue, ) -> Result<Self, ArgumentError>
Trait Implementations§
Source§impl Clone for CommandArgumentValue
impl Clone for CommandArgumentValue
Source§fn clone(&self) -> CommandArgumentValue
fn clone(&self) -> CommandArgumentValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CommandArgumentValue
impl Debug for CommandArgumentValue
Auto Trait Implementations§
impl Freeze for CommandArgumentValue
impl RefUnwindSafe for CommandArgumentValue
impl Send for CommandArgumentValue
impl Sync for CommandArgumentValue
impl Unpin for CommandArgumentValue
impl UnsafeUnpin for CommandArgumentValue
impl UnwindSafe for CommandArgumentValue
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