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 duplicate 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 for ApplicationCommandOption
impl PartialEq for ApplicationCommandOption
Source§impl Serialize for ApplicationCommandOption
impl Serialize for ApplicationCommandOption
impl StructuralPartialEq for ApplicationCommandOption
Auto Trait Implementations§
impl Freeze for ApplicationCommandOption
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