pub struct InputBlock {
pub label: TextObject,
pub element: Element,
pub dispatch_action: Option<bool>,
pub block_id: Option<BlockId>,
pub hint: Option<TextObject>,
pub optional: Option<bool>,
}Expand description
Fields§
§label: TextObjectA label that appears above an input element in the form of a text object that must have type of plain_text.
element: ElementA block element.
dispatch_action: Option<bool>A boolean that indicates whether or not the use of elements in this block should dispatch a block_actions payload.
block_id: Option<BlockId>A unique identifier for a block.
hint: Option<TextObject>An optional hint that appears below an input element in a lighter grey.
optional: Option<bool>A boolean that indicates whether the input element may be empty when a user submits the modal.
Trait Implementations§
Source§impl Clone for InputBlock
impl Clone for InputBlock
Source§fn clone(&self) -> InputBlock
fn clone(&self) -> InputBlock
Returns a duplicate of the value. Read more
1.0.0 · 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 InputBlock
impl Debug 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