[][src]Struct tamasfe_lsp_types::ColorPresentation

pub struct ColorPresentation {
    pub label: String,
    pub text_edit: Option<TextEdit>,
    pub additional_text_edits: Option<Vec<TextEdit>>,
}

Fields

label: String

The label of this color presentation. It will be shown on the color picker header. By default this is also the text that is inserted when selecting this color presentation.

text_edit: Option<TextEdit>

An edit which is applied to a document when selecting this presentation for the color. When falsy the label is used.

additional_text_edits: Option<Vec<TextEdit>>

An optional array of additional text edits that are applied when selecting this color presentation. Edits must not overlap with the main edit nor with themselves.

Trait Implementations

impl Clone for ColorPresentation[src]

impl Debug for ColorPresentation[src]

impl Default for ColorPresentation[src]

impl<'de> Deserialize<'de> for ColorPresentation[src]

impl Eq for ColorPresentation[src]

impl PartialEq<ColorPresentation> for ColorPresentation[src]

impl Serialize for ColorPresentation[src]

impl StructuralEq for ColorPresentation[src]

impl StructuralPartialEq for ColorPresentation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.