[−][src]Struct slack_blocks::blocks::image::Contents
Fields
image_url: StringThe URL of the image to be displayed.
Maximum length for this field is 3000 characters.
alt_text: StringA 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]
pub fn validate(&self) -> ValidationResult[src]
Trait Implementations
impl Debug for Contents[src]
impl Default for Contents[src]
impl<'de> Deserialize<'de> for Contents[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Serialize for Contents[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl Validate for Contents[src]
fn validate(&self) -> Result<(), ValidationErrors>[src]
Auto Trait Implementations
impl RefUnwindSafe for Contents
impl Send for Contents
impl Sync for Contents
impl Unpin for Contents
impl UnwindSafe for Contents
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,