Skip to main content

Mountain/Command/Hover/Interface/
HoverContent.rs

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