[][src]Struct slack_morphism::prelude::SlackImageBlock

pub struct SlackImageBlock {
    pub block_id: Option<SlackBlockId>,
    pub image_url: String,
    pub alt_text: String,
    pub title: Option<SlackBlockPlainText>,
}

Fields

block_id: Option<SlackBlockId>image_url: Stringalt_text: Stringtitle: Option<SlackBlockPlainText>

Implementations

impl SlackImageBlock[src]

pub fn new(image_url: String, alt_text: String) -> SlackImageBlock[src]

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

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

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

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

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

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

pub fn image_url(&mut self, value: String) -> &mut SlackImageBlock[src]

pub fn with_image_url(self, value: String) -> SlackImageBlock[src]

pub fn alt_text(&mut self, value: String) -> &mut SlackImageBlock[src]

pub fn with_alt_text(self, value: String) -> SlackImageBlock[src]

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

pub fn reset_title(&mut self) -> &mut SlackImageBlock[src]

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

pub fn with_title(self, value: SlackBlockPlainText) -> SlackImageBlock[src]

pub fn without_title(self) -> SlackImageBlock[src]

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

Trait Implementations

impl Clone for SlackImageBlock[src]

impl Debug for SlackImageBlock[src]

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

impl From<SlackImageBlock> for SlackBlock[src]

impl From<SlackImageBlockInit> for SlackImageBlock[src]

impl PartialEq<SlackImageBlock> for SlackImageBlock[src]

impl Serialize for SlackImageBlock[src]

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