[][src]Struct tamasfe_lsp_types::DocumentLink

pub struct DocumentLink {
    pub range: Range,
    pub target: Option<Url>,
    pub tooltip: Option<String>,
    pub data: Option<Value>,
}

A document link is a range in a text document that links to an internal or external resource, like another text document or a web site.

Fields

range: Range

The range this link applies to.

target: Option<Url>

The uri this link points to.

tooltip: Option<String>

The tooltip text when you hover over this link.

If a tooltip is provided, is will be displayed in a string that includes instructions on how to trigger the link, such as {0} (ctrl + click). The specific instructions vary depending on OS, user settings, and localization.

data: Option<Value>

A data entry field that is preserved on a document link between a DocumentLinkRequest and a DocumentLinkResolveRequest.

Trait Implementations

impl Clone for DocumentLink[src]

impl Debug for DocumentLink[src]

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

impl Eq for DocumentLink[src]

impl PartialEq<DocumentLink> for DocumentLink[src]

impl Serialize for DocumentLink[src]

impl StructuralEq for DocumentLink[src]

impl StructuralPartialEq for DocumentLink[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.