pub struct InputBlock {
pub label: TextBlockObject,
pub element: BlockElement,
pub dispatch_action: Option<bool>,
pub block_id: Option<String>,
pub hint: Option<TextBlockObject>,
pub optional: Option<bool>,
}Expand description
A block that collects information from users - it can hold a plain-text input element, a checkbox element, a radio button element, a select menu element, a multi-select menu element, or a datepicker.
See: https://api.slack.com/reference/block-kit/blocks#input
Fields§
§label: TextBlockObject§element: BlockElement§dispatch_action: Option<bool>§block_id: Option<String>§hint: Option<TextBlockObject>§optional: Option<bool>Implementations§
Source§impl InputBlock
impl InputBlock
pub fn builder( label: TextBlockObject, element: BlockElement, ) -> InputBlockBuilder
Trait Implementations§
Source§impl Debug for InputBlock
impl Debug for InputBlock
Source§impl Default for InputBlock
impl Default for InputBlock
Source§fn default() -> InputBlock
fn default() -> InputBlock
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InputBlock
impl<'de> Deserialize<'de> for InputBlock
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
Source§impl PartialEq for InputBlock
impl PartialEq for InputBlock
Source§impl Serialize for InputBlock
impl Serialize for InputBlock
impl StructuralPartialEq for InputBlock
Auto Trait Implementations§
impl Freeze for InputBlock
impl RefUnwindSafe for InputBlock
impl Send for InputBlock
impl Sync for InputBlock
impl Unpin for InputBlock
impl UnwindSafe for InputBlock
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