Struct lsp::types::DocumentLink[][src]

pub struct DocumentLink {
    pub range: Range,
    pub target: 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

The range this link applies to.

The uri this link points to.

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

Methods

impl DocumentLink
[src]

The DocumentLink namespace provides helper functions to work with DocumentLink literals.

Creates a new DocumentLink literal.

Trait Implementations

impl Debug for DocumentLink
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations