Struct lsp2::ShowDocumentParams
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§
§impl Clone for ShowDocumentParams
impl Clone for ShowDocumentParams
§fn clone(&self) -> ShowDocumentParams
fn clone(&self) -> ShowDocumentParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for ShowDocumentParams
impl Debug for ShowDocumentParams
§impl<'de> Deserialize<'de> for ShowDocumentParams
impl<'de> Deserialize<'de> for ShowDocumentParams
§fn deserialize<__D>(
__deserializer: __D
) -> Result<ShowDocumentParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<ShowDocumentParams, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq<ShowDocumentParams> for ShowDocumentParams
impl PartialEq<ShowDocumentParams> for ShowDocumentParams
§fn 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 ==
.§impl Serialize for ShowDocumentParams
impl Serialize for ShowDocumentParams
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more