[][src]Struct slack_morphism::prelude::blocks::SlackInputBlock

pub struct SlackInputBlock {
    pub block_id: Option<SlackBlockId>,
    pub label: SlackBlockPlainText,
    pub element: SlackInputBlockElement,
    pub hint: Option<SlackBlockPlainText>,
    pub optional: Option<bool>,
}

Fields

block_id: Option<SlackBlockId>label: SlackBlockPlainTextelement: SlackInputBlockElementhint: Option<SlackBlockPlainText>optional: Option<bool>

Implementations

impl SlackInputBlock[src]

pub fn new(
    label: SlackBlockPlainText,
    element: SlackInputBlockElement
) -> SlackInputBlock
[src]

pub fn block_id(&mut self, value: SlackBlockId) -> &mut SlackInputBlock[src]

pub fn reset_block_id(&mut self) -> &mut SlackInputBlock[src]

pub fn mopt_block_id(
    &mut self,
    value: Option<SlackBlockId>
) -> &mut SlackInputBlock
[src]

pub fn with_block_id(self, value: SlackBlockId) -> SlackInputBlock[src]

pub fn without_block_id(self) -> SlackInputBlock[src]

pub fn opt_block_id(self, value: Option<SlackBlockId>) -> SlackInputBlock[src]

pub fn label(&mut self, value: SlackBlockPlainText) -> &mut SlackInputBlock[src]

pub fn with_label(self, value: SlackBlockPlainText) -> SlackInputBlock[src]

pub fn element(&mut self, value: SlackInputBlockElement) -> &mut SlackInputBlock[src]

pub fn with_element(self, value: SlackInputBlockElement) -> SlackInputBlock[src]

pub fn hint(&mut self, value: SlackBlockPlainText) -> &mut SlackInputBlock[src]

pub fn reset_hint(&mut self) -> &mut SlackInputBlock[src]

pub fn mopt_hint(
    &mut self,
    value: Option<SlackBlockPlainText>
) -> &mut SlackInputBlock
[src]

pub fn with_hint(self, value: SlackBlockPlainText) -> SlackInputBlock[src]

pub fn without_hint(self) -> SlackInputBlock[src]

pub fn opt_hint(self, value: Option<SlackBlockPlainText>) -> SlackInputBlock[src]

pub fn optional(&mut self, value: bool) -> &mut SlackInputBlock[src]

pub fn reset_optional(&mut self) -> &mut SlackInputBlock[src]

pub fn mopt_optional(&mut self, value: Option<bool>) -> &mut SlackInputBlock[src]

pub fn with_optional(self, value: bool) -> SlackInputBlock[src]

pub fn without_optional(self) -> SlackInputBlock[src]

pub fn opt_optional(self, value: Option<bool>) -> SlackInputBlock[src]

Trait Implementations

impl Clone for SlackInputBlock[src]

impl Debug for SlackInputBlock[src]

impl<'de> Deserialize<'de> for SlackInputBlock[src]

impl From<SlackInputBlock> for SlackBlock[src]

impl From<SlackInputBlockInit> for SlackInputBlock[src]

impl PartialEq<SlackInputBlock> for SlackInputBlock[src]

impl Serialize for SlackInputBlock[src]

impl StructuralPartialEq for SlackInputBlock[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.