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

pub struct SlackSectionBlock {
    pub block_id: Option<SlackBlockId>,
    pub text: Option<SlackBlockText>,
    pub fields: Option<Vec<SlackBlockText>>,
    pub accessory: Option<SlackSectionBlockElement>,
}

Fields

block_id: Option<SlackBlockId>text: Option<SlackBlockText>fields: Option<Vec<SlackBlockText>>accessory: Option<SlackSectionBlockElement>

Implementations

impl SlackSectionBlock[src]

pub fn new() -> SlackSectionBlock[src]

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

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

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

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

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

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

pub fn text(&mut self, value: SlackBlockText) -> &mut SlackSectionBlock[src]

pub fn reset_text(&mut self) -> &mut SlackSectionBlock[src]

pub fn mopt_text(
    &mut self,
    value: Option<SlackBlockText>
) -> &mut SlackSectionBlock
[src]

pub fn with_text(self, value: SlackBlockText) -> SlackSectionBlock[src]

pub fn without_text(self) -> SlackSectionBlock[src]

pub fn opt_text(self, value: Option<SlackBlockText>) -> SlackSectionBlock[src]

pub fn fields(&mut self, value: Vec<SlackBlockText>) -> &mut SlackSectionBlock[src]

pub fn reset_fields(&mut self) -> &mut SlackSectionBlock[src]

pub fn mopt_fields(
    &mut self,
    value: Option<Vec<SlackBlockText>>
) -> &mut SlackSectionBlock
[src]

pub fn with_fields(self, value: Vec<SlackBlockText>) -> SlackSectionBlock[src]

pub fn without_fields(self) -> SlackSectionBlock[src]

pub fn opt_fields(self, value: Option<Vec<SlackBlockText>>) -> SlackSectionBlock[src]

pub fn accessory(
    &mut self,
    value: SlackSectionBlockElement
) -> &mut SlackSectionBlock
[src]

pub fn reset_accessory(&mut self) -> &mut SlackSectionBlock[src]

pub fn mopt_accessory(
    &mut self,
    value: Option<SlackSectionBlockElement>
) -> &mut SlackSectionBlock
[src]

pub fn with_accessory(
    self,
    value: SlackSectionBlockElement
) -> SlackSectionBlock
[src]

pub fn without_accessory(self) -> SlackSectionBlock[src]

pub fn opt_accessory(
    self,
    value: Option<SlackSectionBlockElement>
) -> SlackSectionBlock
[src]

Trait Implementations

impl Clone for SlackSectionBlock[src]

impl Debug for SlackSectionBlock[src]

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

impl From<SlackSectionBlock> for SlackBlock[src]

impl From<SlackSectionBlockInit> for SlackSectionBlock[src]

impl PartialEq<SlackSectionBlock> for SlackSectionBlock[src]

impl Serialize for SlackSectionBlock[src]

impl StructuralPartialEq for SlackSectionBlock[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, 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.