#[non_exhaustive]pub struct ActivityAssets {
pub large_image: Option<CompactString>,
pub large_text: Option<CompactString>,
pub large_url: Option<CompactString>,
pub small_image: Option<CompactString>,
pub small_text: Option<CompactString>,
pub small_url: Option<CompactString>,
pub invite_cover_image: Option<CompactString>,
}Expand description
The images of an activity and their hover texts.
Images are an application asset ID or mp:{image_id} for an image of the media proxy
(https://media.discordapp.net/{image_id}); they are user-provided and not sanitized.
discord.js counterpart: GatewayActivityAssets (discord-api-types).
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.large_image: Option<CompactString>The large image.
large_text: Option<CompactString>The large image’s hover text.
large_url: Option<CompactString>The URL opened by clicking the large image.
small_image: Option<CompactString>The small image.
small_text: Option<CompactString>The small image’s hover text.
small_url: Option<CompactString>The URL opened by clicking the small image.
invite_cover_image: Option<CompactString>The banner of a game invite.
Trait Implementations§
Source§impl Clone for ActivityAssets
impl Clone for ActivityAssets
Source§impl Debug for ActivityAssets
impl Debug for ActivityAssets
Source§impl Default for ActivityAssets
impl Default for ActivityAssets
Source§impl<'de> Deserialize<'de> for ActivityAssets
impl<'de> Deserialize<'de> for ActivityAssets
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 ActivityAssets
Source§impl PartialEq for ActivityAssets
impl PartialEq for ActivityAssets
Source§impl Serialize for ActivityAssets
impl Serialize for ActivityAssets
impl StructuralPartialEq for ActivityAssets
Auto Trait Implementations§
impl Freeze for ActivityAssets
impl RefUnwindSafe for ActivityAssets
impl Send for ActivityAssets
impl Sync for ActivityAssets
impl Unpin for ActivityAssets
impl UnsafeUnpin for ActivityAssets
impl UnwindSafe for ActivityAssets
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