Struct discord_flows::model::component::InputText
source · pub struct InputText {
pub kind: ComponentType,
pub custom_id: String,
pub value: String,
}
Expand description
An input text component for modal interactions
Fields§
§kind: ComponentType
The component type, it will always be ComponentType::InputText
.
custom_id: String
An identifier defined by the developer for the select menu.
value: String
The input from the user
Trait Implementations§
source§impl<'de> Deserialize<'de> for InputText
impl<'de> Deserialize<'de> for InputText
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<InputText, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<InputText, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for InputText
impl Serialize for InputText
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for InputText
impl Send for InputText
impl Sync for InputText
impl Unpin for InputText
impl UnwindSafe for InputText
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