[−][src]Struct lsp_msg::InitializeParams
The first request from the client to the server.
Fields
process_id: Option<u64>
The process id of the process that started the server.
If Option::None
, the server has not been started.
root_path: Elective<Option<String>>
The root path of the workspace.
If Option::None
, no folder is open.
Deprecated in favor of InitializeParams::root_uri
.
root_uri: Option<String>
The root URI of the workspace.
If Option::None
, no folder is open. Else, overrides InitializeParams::root_path
.
initialization_options: Elective<Value>
User provided initialization options.
capabilities: ClientCapabilities
Capabilities provided by the client.
trace: TraceKind
The initial trace setting.
workspace_folders: Elective<Option<Vec<WorkspaceFolder>>>
The workspace folders configured in the client.
If Elective::Absent
, client does not support workspace folders. If Option::None
, client supports
workspace folders but none are configured.
Trait Implementations
impl Default for InitializeParams
[src]
fn default() -> InitializeParams
[src]
impl Debug for InitializeParams
[src]
impl Serialize for InitializeParams
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for InitializeParams
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for InitializeParams
impl Sync for InitializeParams
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,