pub struct InitializeResult {
pub protocol_version: String,
pub server_seq: i64,
pub snapshots: Vec<Snapshot>,
pub default_directory: Option<Uri>,
pub completion_trigger_characters: Option<Vec<String>>,
pub telemetry: Option<TelemetryCapabilities>,
}Expand description
Result of the initialize command.
protocolVersion is the version the server has selected from the client’s
protocolVersions list. The client and server MUST use this version for
the rest of the connection. If the server cannot speak any of the offered
versions it MUST return error code -32005 (UnsupportedProtocolVersion)
instead of a result.
Fields§
§protocol_version: StringProtocol version selected by the server. MUST be one of the entries in
InitializeParams.protocolVersions. Formatted as a SemVer
MAJOR.MINOR.PATCH string (e.g. "0.1.0").
server_seq: i64Current server sequence number
snapshots: Vec<Snapshot>Snapshots for each initialSubscriptions URI
default_directory: Option<Uri>Suggested default directory for remote filesystem browsing
completion_trigger_characters: Option<Vec<String>>Characters that, when typed in a {@link UserMessage} input, SHOULD cause
the client to issue a completions request with
{@link CompletionItemKind.UserMessage}. Typically includes characters like
'@' or '/'.
telemetry: Option<TelemetryCapabilities>OTLP telemetry channels the host emits, if any. Each populated field is
either a literal ahp-otlp: channel URI or an RFC 6570 URI template a
client expands before subscribing (currently only the logs channel
defines a template variable, {level}, for subscriber-side severity
filtering). Clients MAY ignore signals they cannot process.
Trait Implementations§
Source§impl Clone for InitializeResult
impl Clone for InitializeResult
Source§fn clone(&self) -> InitializeResult
fn clone(&self) -> InitializeResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InitializeResult
impl Debug for InitializeResult
Source§impl<'de> Deserialize<'de> for InitializeResult
impl<'de> Deserialize<'de> for InitializeResult
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>,
Source§impl PartialEq for InitializeResult
impl PartialEq for InitializeResult
Source§fn eq(&self, other: &InitializeResult) -> bool
fn eq(&self, other: &InitializeResult) -> bool
self and other values to be equal, and is used by ==.