pub struct InteractionDataOption<'a> {
pub name: TitanString<'a>,
pub option_type: OptionType,
pub value: Option<Value>,
pub options: Vec<InteractionDataOption<'a>>,
pub focused: bool,
}Expand description
Option received in Interaction Data.
Fields§
§name: TitanString<'a>Name of the parameter.
option_type: OptionTypeValue type.
value: Option<Value>Value (can be string, int, double, bool).
options: Vec<InteractionDataOption<'a>>Sub-options.
focused: boolWhether focused (autocomplete).
Trait Implementations§
Source§impl<'a> Clone for InteractionDataOption<'a>
impl<'a> Clone for InteractionDataOption<'a>
Source§fn clone(&self) -> InteractionDataOption<'a>
fn clone(&self) -> InteractionDataOption<'a>
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<'a> Debug for InteractionDataOption<'a>
impl<'a> Debug for InteractionDataOption<'a>
Source§impl<'de, 'a> Deserialize<'de> for InteractionDataOption<'a>
impl<'de, 'a> Deserialize<'de> for InteractionDataOption<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for InteractionDataOption<'a>
impl<'a> RefUnwindSafe for InteractionDataOption<'a>
impl<'a> Send for InteractionDataOption<'a>
impl<'a> Sync for InteractionDataOption<'a>
impl<'a> Unpin for InteractionDataOption<'a>
impl<'a> UnwindSafe for InteractionDataOption<'a>
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