twilight_model/channel/message/component/text_display.rs
1use serde::{Deserialize, Serialize};
2
3/// Top-level component that allows markdown formatted text.
4///
5/// Text Displays are only available in messages.
6#[derive(Clone, Debug, Eq, Hash, PartialEq, Deserialize, Serialize)]
7pub struct TextDisplay {
8 /// Optional id for the text display component.
9 #[serde(skip_serializing_if = "Option::is_none")]
10 pub id: Option<i32>,
11 /// Text that will be displayed similar to a message.
12 pub content: String,
13}