Skip to main content

IntoV2

Trait IntoV2 

Source
pub trait IntoV2 {
    type Output;

    // Required method
    fn into_v2(self) -> Result<Self::Output>;
}
Available on crate feature unstable_protocol_v2 only.
Expand description

Converts a value from the v1 type namespace into the matching v2 draft type.

Required Associated Types§

Source

type Output

The corresponding v2 draft type.

Required Methods§

Source

fn into_v2(self) -> Result<Self::Output>

Converts this value into the corresponding v2 draft type.

§Errors

Returns ProtocolConversionError when a value cannot be represented in v2.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoV2 for &'static str

Source§

type Output = &'static str

Source§

fn into_v2(self) -> Result<Self::Output>

Source§

impl IntoV2 for Arc<RawValue>

Source§

impl IntoV2 for Arc<str>

Source§

impl IntoV2 for Map<String, Value>

Source§

impl IntoV2 for PathBuf

Source§

impl IntoV2 for String

Source§

impl IntoV2 for Value

Source§

impl IntoV2 for bool

Source§

impl IntoV2 for f32

Source§

impl IntoV2 for f64

Source§

impl IntoV2 for i8

Source§

type Output = i8

Source§

fn into_v2(self) -> Result<Self::Output>

Source§

impl IntoV2 for i16

Source§

impl IntoV2 for i32

Source§

impl IntoV2 for i64

Source§

impl IntoV2 for isize

Source§

impl IntoV2 for u8

Source§

type Output = u8

Source§

fn into_v2(self) -> Result<Self::Output>

Source§

impl IntoV2 for u16

Source§

impl IntoV2 for u32

Source§

impl IntoV2 for u64

Source§

impl IntoV2 for usize

Source§

impl<K, V, S> IntoV2 for HashMap<K, V, S>
where K: IntoV2, K::Output: Eq + Hash, V: IntoV2, S: BuildHasher,

Source§

type Output = HashMap<<K as IntoV2>::Output, <V as IntoV2>::Output>

Source§

fn into_v2(self) -> Result<Self::Output>

Source§

impl<K, V> IntoV2 for BTreeMap<K, V>
where K: IntoV2, K::Output: Ord, V: IntoV2,

Source§

type Output = BTreeMap<<K as IntoV2>::Output, <V as IntoV2>::Output>

Source§

fn into_v2(self) -> Result<Self::Output>

Source§

impl<T> IntoV2 for Option<T>
where T: IntoV2,

Source§

type Output = Option<<T as IntoV2>::Output>

Source§

fn into_v2(self) -> Result<Self::Output>

Source§

impl<T> IntoV2 for Vec<T>
where T: IntoV2,

Source§

type Output = Vec<<T as IntoV2>::Output>

Source§

fn into_v2(self) -> Result<Self::Output>

Implementors§

Source§

impl IntoV2 for AcceptNesNotification

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for AgentAuthCapabilities

Source§

impl IntoV2 for AgentCapabilities

Source§

impl IntoV2 for AgentNotification

Source§

impl IntoV2 for AgentRequest

Source§

impl IntoV2 for AgentResponse

Source§

impl IntoV2 for Annotations

Source§

impl IntoV2 for AudioContent

Source§

impl IntoV2 for AuthCapabilities

Available on crate feature unstable_auth_methods only.
Source§

impl IntoV2 for AuthEnvVar

Available on crate feature unstable_auth_methods only.
Source§

impl IntoV2 for AuthMethod

Source§

impl IntoV2 for AuthMethodAgent

Source§

impl IntoV2 for AuthMethodEnvVar

Available on crate feature unstable_auth_methods only.
Source§

impl IntoV2 for AuthMethodId

Source§

impl IntoV2 for AuthMethodTerminal

Available on crate feature unstable_auth_methods only.
Source§

impl IntoV2 for AuthenticateRequest

Source§

impl IntoV2 for AuthenticateResponse

Source§

impl IntoV2 for AvailableCommand

Source§

impl IntoV2 for AvailableCommandInput

Source§

impl IntoV2 for AvailableCommandsUpdate

Source§

impl IntoV2 for BlobResourceContents

Source§

impl IntoV2 for BooleanPropertySchema

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for CancelNotification

Source§

impl IntoV2 for CancelRequestNotification

Available on crate feature unstable_cancel_request only.
Source§

impl IntoV2 for ClientCapabilities

Source§

impl IntoV2 for ClientNesCapabilities

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for ClientNotification

Source§

impl IntoV2 for ClientRequest

Source§

impl IntoV2 for ClientResponse

Source§

impl IntoV2 for CloseNesRequest

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for CloseNesResponse

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for CloseSessionRequest

Source§

impl IntoV2 for CloseSessionResponse

Source§

impl IntoV2 for CompleteElicitationNotification

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for ConfigOptionUpdate

Source§

impl IntoV2 for ConnectMcpRequest

Available on crate feature unstable_mcp_over_acp only.
Source§

impl IntoV2 for ConnectMcpResponse

Available on crate feature unstable_mcp_over_acp only.
Source§

impl IntoV2 for Content

Source§

impl IntoV2 for ContentBlock

Source§

impl IntoV2 for ContentChunk

Source§

impl IntoV2 for Cost

Source§

impl IntoV2 for CreateElicitationRequest

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for CreateElicitationResponse

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for DeleteSessionRequest

Source§

impl IntoV2 for DeleteSessionResponse

Source§

impl IntoV2 for DidChangeDocumentNotification

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for DidCloseDocumentNotification

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for DidFocusDocumentNotification

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for DidOpenDocumentNotification

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for DidSaveDocumentNotification

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for Diff

Source§

impl IntoV2 for DisableProviderRequest

Available on crate feature unstable_llm_providers only.
Source§

impl IntoV2 for DisableProviderResponse

Available on crate feature unstable_llm_providers only.
Source§

impl IntoV2 for DisconnectMcpRequest

Available on crate feature unstable_mcp_over_acp only.
Source§

impl IntoV2 for DisconnectMcpResponse

Available on crate feature unstable_mcp_over_acp only.
Source§

impl IntoV2 for ElicitationAcceptAction

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for ElicitationAction

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for ElicitationCapabilities

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for ElicitationContentValue

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for ElicitationFormCapabilities

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for ElicitationFormMode

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for ElicitationId

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for ElicitationMode

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for ElicitationPropertySchema

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for ElicitationRequestScope

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for ElicitationSchema

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for ElicitationSchemaType

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for ElicitationScope

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for ElicitationSessionScope

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for ElicitationStringType

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for ElicitationUrlCapabilities

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for ElicitationUrlMode

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for ElicitationUrlOnlyMode

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for EmbeddedResource

Source§

impl IntoV2 for EmbeddedResourceResource

Source§

impl IntoV2 for EnumOption

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for EnvVariable

Source§

impl IntoV2 for Error

Source§

impl IntoV2 for ErrorCode

Source§

impl IntoV2 for ExtNotification

Source§

impl IntoV2 for ExtRequest

Source§

impl IntoV2 for ExtResponse

Source§

impl IntoV2 for ForkSessionRequest

Available on crate feature unstable_session_fork only.
Source§

impl IntoV2 for ForkSessionResponse

Available on crate feature unstable_session_fork only.
Source§

impl IntoV2 for HttpHeader

Source§

impl IntoV2 for ImageContent

Source§

impl IntoV2 for Implementation

Source§

impl IntoV2 for InitializeRequest

Source§

impl IntoV2 for InitializeResponse

Source§

impl IntoV2 for IntegerPropertySchema

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for ListProvidersRequest

Available on crate feature unstable_llm_providers only.
Source§

impl IntoV2 for ListProvidersResponse

Available on crate feature unstable_llm_providers only.
Source§

impl IntoV2 for ListSessionsRequest

Source§

impl IntoV2 for ListSessionsResponse

Source§

impl IntoV2 for LlmProtocol

Available on crate feature unstable_llm_providers only.
Source§

impl IntoV2 for LoadSessionRequest

Source§

impl IntoV2 for LoadSessionResponse

Source§

impl IntoV2 for LogoutCapabilities

Source§

impl IntoV2 for LogoutRequest

Source§

impl IntoV2 for LogoutResponse

Source§

impl IntoV2 for McpCapabilities

Source§

impl IntoV2 for McpConnectionId

Available on crate feature unstable_mcp_over_acp only.
Source§

impl IntoV2 for McpServer

Source§

impl IntoV2 for McpServerAcp

Available on crate feature unstable_mcp_over_acp only.
Source§

impl IntoV2 for McpServerAcpId

Available on crate feature unstable_mcp_over_acp only.
Source§

impl IntoV2 for McpServerHttp

Source§

impl IntoV2 for McpServerStdio

Source§

impl IntoV2 for MessageId

Source§

impl IntoV2 for MessageMcpNotification

Available on crate feature unstable_mcp_over_acp only.
Source§

impl IntoV2 for MessageMcpRequest

Available on crate feature unstable_mcp_over_acp only.
Source§

impl IntoV2 for MessageMcpResponse

Available on crate feature unstable_mcp_over_acp only.
Source§

impl IntoV2 for MultiSelectItems

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for MultiSelectPropertySchema

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for NesCapabilities

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesContextCapabilities

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesDiagnostic

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesDiagnosticSeverity

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesDiagnosticsCapabilities

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesDocumentDidChangeCapabilities

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesDocumentDidCloseCapabilities

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesDocumentDidFocusCapabilities

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesDocumentDidOpenCapabilities

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesDocumentDidSaveCapabilities

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesDocumentEventCapabilities

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesEditHistoryCapabilities

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesEditHistoryEntry

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesEditSuggestion

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesEventCapabilities

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesExcerpt

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesJumpCapabilities

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesJumpSuggestion

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesOpenFile

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesOpenFilesCapabilities

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesRecentFile

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesRecentFilesCapabilities

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesRejectReason

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesRelatedSnippet

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesRelatedSnippetsCapabilities

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesRenameCapabilities

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesRenameSuggestion

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesRepository

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesSearchAndReplaceCapabilities

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesSearchAndReplaceSuggestion

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesSuggestContext

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesSuggestion

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesTextEdit

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesTriggerKind

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesUserAction

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NesUserActionsCapabilities

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for NewSessionRequest

Source§

impl IntoV2 for NewSessionResponse

Source§

impl IntoV2 for NumberPropertySchema

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for PermissionOption

Source§

impl IntoV2 for PermissionOptionId

Source§

impl IntoV2 for PermissionOptionKind

Source§

impl IntoV2 for PlanEntry

Source§

impl IntoV2 for PlanEntryPriority

Source§

impl IntoV2 for PlanEntryStatus

Source§

impl IntoV2 for PlanFile

Available on crate feature unstable_plan_operations only.
Source§

impl IntoV2 for PlanId

Available on crate feature unstable_plan_operations only.
Source§

impl IntoV2 for PlanItems

Available on crate feature unstable_plan_operations only.
Source§

impl IntoV2 for PlanMarkdown

Available on crate feature unstable_plan_operations only.
Source§

impl IntoV2 for PlanRemoved

Available on crate feature unstable_plan_operations only.
Source§

impl IntoV2 for PlanUpdate

Available on crate feature unstable_plan_operations only.
Source§

impl IntoV2 for PlanUpdateContent

Available on crate feature unstable_plan_operations only.
Source§

impl IntoV2 for Position

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for PositionEncodingKind

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for PromptCapabilities

Source§

impl IntoV2 for PromptRequest

Source§

impl IntoV2 for PromptResponse

Source§

impl IntoV2 for ProtocolLevelNotification

Available on crate feature unstable_cancel_request only.
Source§

impl IntoV2 for ProtocolVersion

Source§

impl IntoV2 for ProviderCurrentConfig

Available on crate feature unstable_llm_providers only.
Source§

impl IntoV2 for ProviderInfo

Available on crate feature unstable_llm_providers only.
Source§

impl IntoV2 for ProvidersCapabilities

Available on crate feature unstable_llm_providers only.
Source§

impl IntoV2 for Range

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for RejectNesNotification

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for RequestId

Source§

impl IntoV2 for RequestPermissionOutcome

Source§

impl IntoV2 for RequestPermissionRequest

Source§

impl IntoV2 for RequestPermissionResponse

Source§

impl IntoV2 for ResumeSessionRequest

Source§

impl IntoV2 for ResumeSessionResponse

Source§

impl IntoV2 for Role

Source§

impl IntoV2 for SelectedPermissionOutcome

Source§

impl IntoV2 for SessionAdditionalDirectoriesCapabilities

Source§

impl IntoV2 for SessionCapabilities

Source§

impl IntoV2 for SessionCloseCapabilities

Source§

impl IntoV2 for SessionConfigBoolean

Available on crate feature unstable_boolean_config only.
Source§

impl IntoV2 for SessionConfigGroupId

Source§

impl IntoV2 for SessionConfigId

Source§

impl IntoV2 for SessionConfigKind

Source§

impl IntoV2 for SessionConfigOption

Source§

impl IntoV2 for SessionConfigOptionCategory

Source§

impl IntoV2 for SessionConfigOptionValue

Available on crate feature unstable_boolean_config only.
Source§

impl IntoV2 for SessionConfigSelect

Source§

impl IntoV2 for SessionConfigSelectGroup

Source§

impl IntoV2 for SessionConfigSelectOption

Source§

impl IntoV2 for SessionConfigSelectOptions

Source§

impl IntoV2 for SessionConfigValueId

Source§

impl IntoV2 for SessionDeleteCapabilities

Source§

impl IntoV2 for SessionForkCapabilities

Available on crate feature unstable_session_fork only.
Source§

impl IntoV2 for SessionId

Source§

impl IntoV2 for SessionInfo

Source§

impl IntoV2 for SessionInfoUpdate

Source§

impl IntoV2 for SessionListCapabilities

Source§

impl IntoV2 for SessionNotification

Source§

impl IntoV2 for SessionResumeCapabilities

Source§

impl IntoV2 for SessionUpdate

Source§

impl IntoV2 for SetProviderRequest

Available on crate feature unstable_llm_providers only.
Source§

impl IntoV2 for SetProviderResponse

Available on crate feature unstable_llm_providers only.
Source§

impl IntoV2 for SetSessionConfigOptionRequest

Source§

impl IntoV2 for SetSessionConfigOptionResponse

Source§

impl IntoV2 for StartNesRequest

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for StartNesResponse

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for StopReason

Source§

impl IntoV2 for StringFormat

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for StringPropertySchema

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for SuggestNesRequest

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for SuggestNesResponse

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for TextContent

Source§

impl IntoV2 for TextDocumentContentChangeEvent

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for TextDocumentSyncKind

Available on crate feature unstable_nes only.
Source§

impl IntoV2 for TextResourceContents

Source§

impl IntoV2 for TitledMultiSelectItems

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for ToolCall

Source§

impl IntoV2 for ToolCallContent

Source§

impl IntoV2 for ToolCallId

Source§

impl IntoV2 for ToolCallLocation

Source§

impl IntoV2 for ToolCallStatus

Source§

impl IntoV2 for ToolCallUpdate

Source§

impl IntoV2 for ToolCallUpdateFields

Source§

impl IntoV2 for ToolKind

Source§

impl IntoV2 for UnstructuredCommandInput

Source§

impl IntoV2 for UntitledMultiSelectItems

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for UrlElicitationRequiredData

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for UrlElicitationRequiredItem

Available on crate feature unstable_elicitation only.
Source§

impl IntoV2 for Usage

Available on crate feature unstable_end_turn_token_usage only.
Source§

impl IntoV2 for UsageUpdate

Source§

impl IntoV2 for WorkspaceFolder

Available on crate feature unstable_nes only.
Source§

impl<Message> IntoV2 for JsonRpcMessage<Message>
where Message: IntoV2,

Source§

impl<Params> IntoV2 for Notification<Params>
where Params: IntoV2,

Source§

impl<Params> IntoV2 for Request<Params>
where Params: IntoV2,

Source§

type Output = Request<<Params as IntoV2>::Output>

Source§

impl<Response> IntoV2 for Response<Response>
where Response: IntoV2,

Source§

type Output = Response<<Response as IntoV2>::Output, Error>

Source§

impl<T> IntoV2 for MaybeUndefined<T>
where T: IntoV2,