[][src]Struct lsp_msg::InitializeParams

pub struct InitializeParams {
    pub process_id: Option<u64>,
    pub root_path: Elective<Option<String>>,
    pub root_uri: Option<String>,
    pub initialization_options: Elective<Value>,
    pub capabilities: ClientCapabilities,
    pub trace: TraceKind,
    pub workspace_folders: Elective<Option<Vec<WorkspaceFolder>>>,
}

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]

impl Debug for InitializeParams[src]

impl Serialize for InitializeParams[src]

impl<'de> Deserialize<'de> for InitializeParams[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]