pub struct MediaGalleryItem {
pub media: UnfurledMediaItem,
pub description: Option<String>,
pub spoiler: Option<bool>,
}
Expand description
A media gallery item.
Fields§
§media: UnfurledMediaItem
An unfurled media item containing a url or attachment.
description: Option<String>
Alt text for the media gallery item.
spoiler: Option<bool>
Whether the media should be a spoiler (or blurred out). Defaults to false
.
Trait Implementations§
Source§impl Clone for MediaGalleryItem
impl Clone for MediaGalleryItem
Source§fn clone(&self) -> MediaGalleryItem
fn clone(&self) -> MediaGalleryItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MediaGalleryItem
impl Debug for MediaGalleryItem
Source§impl<'de> Deserialize<'de> for MediaGalleryItem
impl<'de> Deserialize<'de> for MediaGalleryItem
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
Source§impl Hash for MediaGalleryItem
impl Hash for MediaGalleryItem
Source§impl PartialEq for MediaGalleryItem
impl PartialEq for MediaGalleryItem
Source§impl Serialize for MediaGalleryItem
impl Serialize for MediaGalleryItem
impl Eq for MediaGalleryItem
impl StructuralPartialEq for MediaGalleryItem
Auto Trait Implementations§
impl Freeze for MediaGalleryItem
impl RefUnwindSafe for MediaGalleryItem
impl Send for MediaGalleryItem
impl Sync for MediaGalleryItem
impl Unpin for MediaGalleryItem
impl UnwindSafe for MediaGalleryItem
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