pub struct TextInput {
pub id: Option<u32>,
pub custom_id: String,
pub style: TextInputStyle,
pub min_length: Option<u32>,
pub max_length: Option<u32>,
pub required: Option<bool>,
pub value: Option<String>,
pub placeholder: Option<String>,
}Expand description
Type 4.
Fields§
§id: Option<u32>Unique in the modal.
custom_id: String1–100 bytes.
style: TextInputStyleShort or paragraph.
min_length: Option<u32>0–4 000.
max_length: Option<u32>1–4 000.
required: Option<bool>Default true.
value: Option<String>Prefilled text, ≤ 4 000 scalars.
placeholder: Option<String>≤ 100 scalars.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TextInput
impl<'de> Deserialize<'de> for TextInput
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 TextInput
impl StructuralPartialEq for TextInput
Auto Trait Implementations§
impl Freeze for TextInput
impl RefUnwindSafe for TextInput
impl Send for TextInput
impl Sync for TextInput
impl Unpin for TextInput
impl UnsafeUnpin for TextInput
impl UnwindSafe for TextInput
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