Skip to main content

Mountain/Command/Hover/Interface/
HoverContent.rs

1
2//! Tagged hover content payload. Plain-text and Markdown are the
3//! common shapes; `Markup` carries an optional language hint for
4//! syntax-highlighted code blocks.
5
6use serde::{Deserialize, Serialize};
7
8#[derive(Debug, Clone, Serialize, Deserialize)]
9#[serde(tag = "kind", content = "value")]
10pub enum Enum {
11	PlainText(String),
12
13	Markdown(String),
14
15	Markup { value:String, language:Option<String> },
16}