pub struct CommandDataOption {
pub name: String,
pub value: CommandOptionValue,
}
Expand description
Data received when a user fills in a command option.
Fields§
§name: String
Name of the option.
value: CommandOptionValue
Value of the option.
Trait Implementations§
source§impl Clone for CommandDataOption
impl Clone for CommandDataOption
source§fn clone(&self) -> CommandDataOption
fn clone(&self) -> CommandDataOption
Returns a copy of the value. Read more
1.0.0 · 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 CommandDataOption
impl Debug for CommandDataOption
source§impl<'de> Deserialize<'de> for CommandDataOption
impl<'de> Deserialize<'de> for CommandDataOption
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for CommandDataOption
impl PartialEq for CommandDataOption
source§impl Serialize for CommandDataOption
impl Serialize for CommandDataOption
impl StructuralPartialEq for CommandDataOption
Auto Trait Implementations§
impl Freeze for CommandDataOption
impl RefUnwindSafe for CommandDataOption
impl Send for CommandDataOption
impl Sync for CommandDataOption
impl Unpin for CommandDataOption
impl UnwindSafe for CommandDataOption
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)