pub struct StringSelect {
pub id: Option<u32>,
pub custom_id: String,
pub options: Vec<SelectOption>,
pub placeholder: Option<String>,
pub min_values: Option<u32>,
pub max_values: Option<u32>,
pub required: Option<bool>,
pub disabled: bool,
}Expand description
Type 3.
Fields§
§id: Option<u32>Unique in the message.
custom_id: String1–100 bytes.
options: Vec<SelectOption>1–25.
placeholder: Option<String>≤ 150 scalars.
min_values: Option<u32>0–25, default 1.
max_values: Option<u32>≤ 25, default 1.
required: Option<bool>Modal only; default true.
disabled: boolNot in a modal.
Trait Implementations§
Source§impl Clone for StringSelect
impl Clone for StringSelect
Source§fn clone(&self) -> StringSelect
fn clone(&self) -> StringSelect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StringSelect
impl Debug for StringSelect
Source§impl<'de> Deserialize<'de> for StringSelect
impl<'de> Deserialize<'de> for StringSelect
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
impl Eq for StringSelect
Source§impl PartialEq for StringSelect
impl PartialEq for StringSelect
Source§impl Serialize for StringSelect
impl Serialize for StringSelect
impl StructuralPartialEq for StringSelect
Auto Trait Implementations§
impl Freeze for StringSelect
impl RefUnwindSafe for StringSelect
impl Send for StringSelect
impl Sync for StringSelect
impl Unpin for StringSelect
impl UnsafeUnpin for StringSelect
impl UnwindSafe for StringSelect
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