pub struct Thumbnail {
pub id: Option<i32>,
pub media: UnfurledMediaItem,
pub description: Option<Option<String>>,
pub spoiler: Option<bool>,
}
Expand description
Thumbnail containing a small image. Only usable as a accessory in a section.
Fields§
§id: Option<i32>
Optional identifier for component.
media: UnfurledMediaItem
A unfurled media item containing either a url or attachment.
description: Option<Option<String>>
Alt text for the media.
spoiler: Option<bool>
Whether the thumbnail should be a spoiler (or blurred
out). Defaults to false
.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Thumbnail
impl<'de> Deserialize<'de> for Thumbnail
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Thumbnail
impl StructuralPartialEq for Thumbnail
Auto Trait Implementations§
impl Freeze for Thumbnail
impl RefUnwindSafe for Thumbnail
impl Send for Thumbnail
impl Sync for Thumbnail
impl Unpin for Thumbnail
impl UnwindSafe for Thumbnail
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more