[][src]Struct slack_blocks::blocks::image::Contents

pub struct Contents {
    pub image_url: String,
    pub alt_text: String,
    pub title: Option<Text>,
    pub block_id: Option<String>,
}

Image Block

slack api docs 🔗

A simple image block, designed to make those cat photos really pop.

Fields

image_url: String

The URL of the image to be displayed.

Maximum length for this field is 3000 characters.

alt_text: String

A plain-text summary of the image.

This should not contain any markup.

Maximum length for this field is 2000 characters.

title: Option<Text>

An optional title for the image in the form of a text object 🔗 that can only be of type: plain_text.

Maximum length for the text in this field is 2000 characters.

block_id: Option<String>

A string acting as a unique identifier for a block.

You can use this block_id when you receive an interaction payload to identify the source of the action 🔗.

If not specified, a block_id will be generated.

Maximum length for this field is 255 characters.

Implementations

impl Contents[src]

Trait Implementations

impl Debug for Contents[src]

impl Default for Contents[src]

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

impl Serialize for Contents[src]

impl Validate for Contents[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, U> Into<U> for T where
    U: From<T>, 
[src]

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.