#[non_exhaustive]pub struct Thumbnail {
pub id: Option<i32>,
pub media: Box<UnfurledMediaItem>,
pub description: Option<CompactString>,
pub spoiler: bool,
}Expand description
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: Option<i32>The component’s numeric identifier (generated by Discord when not set).
media: Box<UnfurledMediaItem>The image (a URL or an attachment:// reference).
description: Option<CompactString>The alt text (max 1024 characters).
spoiler: boolWhether the image is blurred until clicked.
Implementations§
Trait Implementations§
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 UnsafeUnpin 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