Enum languageserver_types::MarkedString [] [src]

pub enum MarkedString {
    String(String),
    LanguageString {
        language: String,
        value: String,
    },
}

The marked string is rendered: - as markdown if it is represented as a string - as code block of the given langauge if it is represented as a pair of a language and a value

The pair of a language and a value is an equivalent to markdown: ${language} ${value}

Variants

Fields

Trait Implementations

impl Debug for MarkedString
[src]

Formats the value using the given formatter.

impl PartialEq for MarkedString
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Deserialize for MarkedString
[src]

Deserialize this value given this Deserializer.

impl Serialize for MarkedString
[src]

Serializes this value into this serializer.