Struct lsp2::InitializeResult
pub struct InitializeResult {
pub capabilities: ServerCapabilities,
pub server_info: Option<ServerInfo>,
}
Fields§
§capabilities: ServerCapabilities
The capabilities the language server provides.
server_info: Option<ServerInfo>
Information about the server.
Trait Implementations§
§impl Clone for InitializeResult
impl Clone for InitializeResult
§fn clone(&self) -> InitializeResult
fn clone(&self) -> InitializeResult
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 InitializeResult
impl Debug for InitializeResult
§impl Default for InitializeResult
impl Default for InitializeResult
§fn default() -> InitializeResult
fn default() -> InitializeResult
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for InitializeResult
impl<'de> Deserialize<'de> for InitializeResult
§fn deserialize<__D>(
__deserializer: __D
) -> Result<InitializeResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<InitializeResult, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq<InitializeResult> for InitializeResult
impl PartialEq<InitializeResult> for InitializeResult
§fn eq(&self, other: &InitializeResult) -> bool
fn eq(&self, other: &InitializeResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for InitializeResult
impl Serialize for InitializeResult
§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 InitializeResult
Auto Trait Implementations§
impl RefUnwindSafe for InitializeResult
impl Send for InitializeResult
impl Sync for InitializeResult
impl Unpin for InitializeResult
impl UnwindSafe for InitializeResult
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