pub struct CustomLspDef {
pub language_id: String,
pub command: String,
pub args: Vec<String>,
}Expand description
User-defined LSP server for one file extension (used inside
LspConfigToml::custom).
Fields§
§language_id: StringLSP languageId value used in textDocument/didOpen.
command: StringExecutable to spawn.
args: Vec<String>Arguments passed to the executable.
Trait Implementations§
Source§impl Clone for CustomLspDef
impl Clone for CustomLspDef
Source§fn clone(&self) -> CustomLspDef
fn clone(&self) -> CustomLspDef
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 Debug for CustomLspDef
impl Debug for CustomLspDef
Source§impl Default for CustomLspDef
impl Default for CustomLspDef
Source§fn default() -> CustomLspDef
fn default() -> CustomLspDef
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CustomLspDef
impl<'de> Deserialize<'de> for CustomLspDef
Source§fn 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
impl Eq for CustomLspDef
Source§impl PartialEq for CustomLspDef
impl PartialEq for CustomLspDef
Source§impl Serialize for CustomLspDef
impl Serialize for CustomLspDef
impl StructuralPartialEq for CustomLspDef
Auto Trait Implementations§
impl Freeze for CustomLspDef
impl RefUnwindSafe for CustomLspDef
impl Send for CustomLspDef
impl Sync for CustomLspDef
impl Unpin for CustomLspDef
impl UnsafeUnpin for CustomLspDef
impl UnwindSafe for CustomLspDef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.