pub struct EntitySelect {
pub id: Option<u32>,
pub custom_id: String,
pub placeholder: Option<String>,
pub min_values: Option<u32>,
pub max_values: Option<u32>,
pub default_values: Vec<DefaultValue>,
pub channel_types: Vec<ChannelKind>,
pub required: Option<bool>,
pub disabled: bool,
}Expand description
Types 5–8.
Fields§
§id: Option<u32>Unique in the message.
custom_id: String1–100 bytes.
placeholder: Option<String>≤ 150 scalars.
min_values: Option<u32>0–25, default 1.
max_values: Option<u32>≤ 25, default 1.
default_values: Vec<DefaultValue>Preselected entities, ≤ max_values.
channel_types: Vec<ChannelKind>Type 8 only: the channel kinds offered.
required: Option<bool>Modal only; default true.
disabled: boolNot in a modal.
Trait Implementations§
Source§impl Clone for EntitySelect
impl Clone for EntitySelect
Source§fn clone(&self) -> EntitySelect
fn clone(&self) -> EntitySelect
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 EntitySelect
impl Debug for EntitySelect
Source§impl<'de> Deserialize<'de> for EntitySelect
impl<'de> Deserialize<'de> for EntitySelect
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 EntitySelect
Source§impl PartialEq for EntitySelect
impl PartialEq for EntitySelect
Source§impl Serialize for EntitySelect
impl Serialize for EntitySelect
impl StructuralPartialEq for EntitySelect
Auto Trait Implementations§
impl Freeze for EntitySelect
impl RefUnwindSafe for EntitySelect
impl Send for EntitySelect
impl Sync for EntitySelect
impl Unpin for EntitySelect
impl UnsafeUnpin for EntitySelect
impl UnwindSafe for EntitySelect
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