pub struct IntegerOption {
pub t: TypeField<4>,
pub name: String,
pub name_localizations: Option<HashMap<String, String>>,
pub description: String,
pub description_localizations: Option<HashMap<String, String>>,
pub required: Option<bool>,
pub choices: Option<Vec<ApplicationCommandOptionChoice<i64>>>,
pub min_value: Option<i64>,
pub max_value: Option<i64>,
pub autocomplete: Option<bool>,
}
Fields§
§t: TypeField<4>
§name: String
§name_localizations: Option<HashMap<String, String>>
Localization dictionary for the name field. Values follow the same restrictions as name
description: String
1-100 character description
description_localizations: Option<HashMap<String, String>>
Localization dictionary for the description field. Values follow the same restrictions as description
required: Option<bool>
If the parameter is required or optional–default false
choices: Option<Vec<ApplicationCommandOptionChoice<i64>>>
Choices for STRING, INTEGER, and NUMBER types for the user to pick from, max 25
min_value: Option<i64>
If the option is an INTEGER or NUMBER type, the minimum value permitted
max_value: Option<i64>
If the option is an INTEGER or NUMBER type, the maximum value permitted
autocomplete: Option<bool>
If autocomplete interactions are enabled for this STRING, INTEGER, or NUMBER type option
Trait Implementations§
Source§impl Debug for IntegerOption
impl Debug for IntegerOption
Source§impl<'de> Deserialize<'de> for IntegerOption
impl<'de> Deserialize<'de> for IntegerOption
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 Freeze for IntegerOption
impl RefUnwindSafe for IntegerOption
impl Send for IntegerOption
impl Sync for IntegerOption
impl Unpin for IntegerOption
impl UnwindSafe for IntegerOption
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