pub enum DataType {
String,
Integer,
Boolean,
}
Expand description
A datatype
Variants§
Implementations§
source§impl DataType
impl DataType
sourcepub fn from_data_option_value(v: &CommandDataOptionValue) -> Option<Self>
pub fn from_data_option_value(v: &CommandDataOptionValue) -> Option<Self>
Get the type of a CommandDataOptionValue
.
This returns an option as DataType
does not encode the concept of an unknown data type.
Trait Implementations§
impl Copy for DataType
Auto Trait Implementations§
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnwindSafe for DataType
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