Struct lsp_types::ShowDocumentParams[][src]

pub struct ShowDocumentParams {
    pub uri: Url,
    pub external: Option<bool>,
    pub take_focus: Option<bool>,
    pub selection: Option<Range>,
}

Params to show a document.

@since 3.16.0

Fields

uri: Url

The document uri to show.

external: Option<bool>

Indicates to show the resource in an external program. To show for example https://code.visualstudio.com/ in the default WEB browser set external to true.

take_focus: Option<bool>

An optional property to indicate whether the editor showing the document should take focus or not. Clients might ignore this property if an external program in started.

selection: Option<Range>

An optional selection range if the document is a text document. Clients might ignore the property if an external program is started or the file is not a text file.

Trait Implementations

impl Clone for ShowDocumentParams[src]

impl Debug for ShowDocumentParams[src]

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

impl PartialEq<ShowDocumentParams> for ShowDocumentParams[src]

impl Serialize for ShowDocumentParams[src]

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