pub struct PlainTextInputBlockElement {
pub action_id: String,
pub placeholder: Option<TextBlockObject>,
pub initial_value: Option<String>,
pub multiline: Option<bool>,
pub min_length: Option<i32>,
pub max_length: Option<i32>,
pub dispatch_action_config: Option<DispatchActionConfig>,
pub focus_on_load: Option<bool>,
}Expand description
A plain-text input, similar to the HTML tag, creates a field where a user can enter freeform data.
See: https://api.slack.com/reference/block-kit/block-elements#input
Fields§
§action_id: String§placeholder: Option<TextBlockObject>§initial_value: Option<String>§multiline: Option<bool>§min_length: Option<i32>§max_length: Option<i32>§dispatch_action_config: Option<DispatchActionConfig>§focus_on_load: Option<bool>Implementations§
Source§impl PlainTextInputBlockElement
impl PlainTextInputBlockElement
pub fn builder(action_id: String) -> PlainTextInputBlockElementBuilder
Trait Implementations§
Source§impl Debug for PlainTextInputBlockElement
impl Debug for PlainTextInputBlockElement
Source§impl Default for PlainTextInputBlockElement
impl Default for PlainTextInputBlockElement
Source§fn default() -> PlainTextInputBlockElement
fn default() -> PlainTextInputBlockElement
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PlainTextInputBlockElement
impl<'de> Deserialize<'de> for PlainTextInputBlockElement
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 StructuralPartialEq for PlainTextInputBlockElement
Auto Trait Implementations§
impl Freeze for PlainTextInputBlockElement
impl RefUnwindSafe for PlainTextInputBlockElement
impl Send for PlainTextInputBlockElement
impl Sync for PlainTextInputBlockElement
impl Unpin for PlainTextInputBlockElement
impl UnwindSafe for PlainTextInputBlockElement
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