Struct lsp::types::DocumentLink [−][src]
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<String>
The uri this link points to.
data: Option<Value>
A data entry field that is preserved on a document link between a DocumentLinkRequest and a DocumentLinkResolveRequest.
Methods
impl DocumentLink
[src]
impl DocumentLink
The DocumentLink namespace provides helper functions to work with DocumentLink literals.
pub fn create(range: Range, target: Option<String>, data: Option<Value>) -> Self
[src]
pub fn create(range: Range, target: Option<String>, data: Option<Value>) -> Self
Creates a new DocumentLink literal.
Trait Implementations
impl Debug for DocumentLink
[src]
impl Debug for DocumentLink
Auto Trait Implementations
impl Send for DocumentLink
impl Send for DocumentLink
impl Sync for DocumentLink
impl Sync for DocumentLink