Struct lsp_types::ShowDocumentParams
source · [−]pub struct ShowDocumentParams {
pub uri: Url,
pub external: Option<bool>,
pub take_focus: Option<bool>,
pub selection: Option<Range>,
}
Expand description
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
sourceimpl Clone for ShowDocumentParams
impl Clone for ShowDocumentParams
sourcefn clone(&self) -> ShowDocumentParams
fn clone(&self) -> ShowDocumentParams
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ShowDocumentParams
impl Debug for ShowDocumentParams
sourceimpl<'de> Deserialize<'de> for ShowDocumentParams
impl<'de> Deserialize<'de> for ShowDocumentParams
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<ShowDocumentParams> for ShowDocumentParams
impl PartialEq<ShowDocumentParams> for ShowDocumentParams
sourcefn eq(&self, other: &ShowDocumentParams) -> bool
fn eq(&self, other: &ShowDocumentParams) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ShowDocumentParams) -> bool
fn ne(&self, other: &ShowDocumentParams) -> bool
This method tests for !=
.
sourceimpl Serialize for ShowDocumentParams
impl Serialize for ShowDocumentParams
impl StructuralPartialEq for ShowDocumentParams
Auto Trait Implementations
impl RefUnwindSafe for ShowDocumentParams
impl Send for ShowDocumentParams
impl Sync for ShowDocumentParams
impl Unpin for ShowDocumentParams
impl UnwindSafe for ShowDocumentParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more