pub struct GenericEmbed {
pub title: Option<String>,
pub description: Option<String>,
pub url: Option<String>,
pub color: Option<u32>,
pub timestamp: Option<String>,
pub footer: Option<GenericEmbedFooter>,
pub image: Option<GenericEmbedImage>,
pub thumbnail: Option<GenericEmbedThumbnail>,
pub author: Option<GenericEmbedAuthor>,
pub fields: Vec<GenericEmbedField>,
}Expand description
A rich embed that works across multiple webhook services.
Not all services support all fields. Check the service’s capabilities
via ServiceInfo::features.
Fields§
§title: Option<String>The title of the embed, displayed prominently at the top.
description: Option<String>The main body text of the embed.
url: Option<String>A URL that the title links to when clicked.
color: Option<u32>The color of the embed’s left border, specified as a 24-bit integer.
Example: 0x5865F2 for Discord blurple.
timestamp: Option<String>An ISO 8601 timestamp string displayed in the embed.
Example: "2024-01-01T00:00:00.000Z".
Footer text and optional icon displayed at the bottom of the embed.
image: Option<GenericEmbedImage>A large image displayed within the embed body.
thumbnail: Option<GenericEmbedThumbnail>A smaller thumbnail image displayed in the top-right corner.
Author information including name, URL, and icon displayed at the top.
fields: Vec<GenericEmbedField>A list of field objects displayed as key-value pairs in the embed.
Fields can be displayed side-by-side when inline is set to true.