pub struct LspServerInfo<'a> {
pub name: &'a str,
pub version: &'a str,
}Expand description
The serverInfo subset Zed can verify from an LSP initialize response.
Fields§
§name: &'a strServer name returned by InitializeResult.serverInfo.name.
version: &'a strServer version returned by InitializeResult.serverInfo.version.
Trait Implementations§
Source§impl<'a> Clone for LspServerInfo<'a>
impl<'a> Clone for LspServerInfo<'a>
Source§fn clone(&self) -> LspServerInfo<'a>
fn clone(&self) -> LspServerInfo<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for LspServerInfo<'a>
impl<'a> Debug for LspServerInfo<'a>
Source§impl<'a> PartialEq for LspServerInfo<'a>
impl<'a> PartialEq for LspServerInfo<'a>
Source§fn eq(&self, other: &LspServerInfo<'a>) -> bool
fn eq(&self, other: &LspServerInfo<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> Copy for LspServerInfo<'a>
impl<'a> Eq for LspServerInfo<'a>
impl<'a> StructuralPartialEq for LspServerInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for LspServerInfo<'a>
impl<'a> RefUnwindSafe for LspServerInfo<'a>
impl<'a> Send for LspServerInfo<'a>
impl<'a> Sync for LspServerInfo<'a>
impl<'a> Unpin for LspServerInfo<'a>
impl<'a> UnsafeUnpin for LspServerInfo<'a>
impl<'a> UnwindSafe for LspServerInfo<'a>
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