pub struct InputBlock {
pub label: TextObject,
pub element: InputElement,
pub dispatch_action: Option<bool>,
pub block_id: Option<String>,
pub hint: Option<TextObject>,
pub optional: Option<bool>,
/* private fields */
}Expand description
An input field. https://docs.slack.dev/reference/block-kit/blocks/input-block
Fields§
§label: TextObject§element: InputElement§dispatch_action: Option<bool>§block_id: Option<String>§hint: Option<TextObject>§optional: Option<bool>Implementations§
Source§impl InputBlock
impl InputBlock
pub fn new( label: impl Into<TextObject>, element: impl Into<InputElement>, ) -> Self
pub fn dispatch_action(self, dispatch_action: bool) -> Self
pub fn block_id(self, block_id: impl Into<String>) -> Self
pub fn hint(self, hint: impl Into<TextObject>) -> Self
pub fn optional(self, optional: bool) -> Self
Trait Implementations§
Source§impl Clone for InputBlock
impl Clone for InputBlock
Source§impl Debug for InputBlock
impl Debug for InputBlock
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 From<InputBlock> for Block
impl From<InputBlock> for Block
Source§fn from(value: InputBlock) -> Self
fn from(value: InputBlock) -> Self
Converts to this type from the input type.
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 UnsafeUnpin 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