pub struct ApplicationCommandOption {
pub type: ApplicationCommandOptionType,
pub name: String,
pub description: String,
pub required: bool,
pub choices: Vec<ApplicationCommandOptionChoice>,
pub options: Vec<ApplicationCommandOption>,
}Fields§
§type: ApplicationCommandOptionType§name: String§description: String§required: bool§choices: Vec<ApplicationCommandOptionChoice>§options: Vec<ApplicationCommandOption>Trait Implementations§
source§impl Clone for ApplicationCommandOption
impl Clone for ApplicationCommandOption
source§fn clone(&self) -> ApplicationCommandOption
fn clone(&self) -> ApplicationCommandOption
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 ApplicationCommandOption
impl Debug for ApplicationCommandOption
source§impl<'de> Deserialize<'de> for ApplicationCommandOption
impl<'de> Deserialize<'de> for ApplicationCommandOption
source§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
source§impl PartialEq<ApplicationCommandOption> for ApplicationCommandOption
impl PartialEq<ApplicationCommandOption> for ApplicationCommandOption
source§fn eq(&self, other: &ApplicationCommandOption) -> bool
fn eq(&self, other: &ApplicationCommandOption) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ApplicationCommandOption
impl Serialize for ApplicationCommandOption
impl StructuralPartialEq for ApplicationCommandOption
Auto Trait Implementations§
impl RefUnwindSafe for ApplicationCommandOption
impl Send for ApplicationCommandOption
impl Sync for ApplicationCommandOption
impl Unpin for ApplicationCommandOption
impl UnwindSafe for ApplicationCommandOption
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