pub trait IntoV1 {
type Output;
// Required method
fn into_v1(self) -> Result<Self::Output, ProtocolConversionError>;
}Available on crate feature
unstable_protocol_v2 only.Expand description
Converts a value from the v2 draft type namespace into the matching v1 type.
Required Associated Types§
Required Methods§
Sourcefn into_v1(self) -> Result<Self::Output, ProtocolConversionError>
fn into_v1(self) -> Result<Self::Output, ProtocolConversionError>
Converts this value into the corresponding v1 type.
§Errors
Returns ProtocolConversionError when a value cannot be represented in v1.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Implementors§
Source§impl IntoV1 for AgentAuthCapabilities
impl IntoV1 for AgentAuthCapabilities
Source§impl IntoV1 for AgentCapabilities
impl IntoV1 for AgentCapabilities
type Output = AgentCapabilities
Source§impl IntoV1 for AgentNotification
impl IntoV1 for AgentNotification
type Output = AgentNotification
Source§impl IntoV1 for AgentRequest
impl IntoV1 for AgentRequest
type Output = AgentRequest
Source§impl IntoV1 for AgentResponse
impl IntoV1 for AgentResponse
type Output = AgentResponse
Source§impl IntoV1 for Annotations
impl IntoV1 for Annotations
type Output = Annotations
Source§impl IntoV1 for AudioContent
impl IntoV1 for AudioContent
type Output = AudioContent
Source§impl IntoV1 for AuthCapabilities
Available on crate feature unstable_auth_methods only.
impl IntoV1 for AuthCapabilities
Available on crate feature
unstable_auth_methods only.type Output = AuthCapabilities
Source§impl IntoV1 for AuthEnvVar
Available on crate feature unstable_auth_methods only.
impl IntoV1 for AuthEnvVar
Available on crate feature
unstable_auth_methods only.type Output = AuthEnvVar
Source§impl IntoV1 for AuthMethod
impl IntoV1 for AuthMethod
type Output = AuthMethod
Source§impl IntoV1 for AuthMethodAgent
impl IntoV1 for AuthMethodAgent
type Output = AuthMethodAgent
Source§impl IntoV1 for AuthMethodEnvVar
Available on crate feature unstable_auth_methods only.
impl IntoV1 for AuthMethodEnvVar
Available on crate feature
unstable_auth_methods only.type Output = AuthMethodEnvVar
Source§impl IntoV1 for AuthMethodId
impl IntoV1 for AuthMethodId
type Output = AuthMethodId
Source§impl IntoV1 for AuthMethodTerminal
Available on crate feature unstable_auth_methods only.
impl IntoV1 for AuthMethodTerminal
Available on crate feature
unstable_auth_methods only.type Output = AuthMethodTerminal
Source§impl IntoV1 for AuthenticateRequest
impl IntoV1 for AuthenticateRequest
type Output = AuthenticateRequest
Source§impl IntoV1 for AuthenticateResponse
impl IntoV1 for AuthenticateResponse
Source§impl IntoV1 for AvailableCommand
impl IntoV1 for AvailableCommand
type Output = AvailableCommand
Source§impl IntoV1 for AvailableCommandInput
impl IntoV1 for AvailableCommandInput
Source§impl IntoV1 for AvailableCommandsUpdate
impl IntoV1 for AvailableCommandsUpdate
Source§impl IntoV1 for BlobResourceContents
impl IntoV1 for BlobResourceContents
Source§impl IntoV1 for BooleanPropertySchema
Available on crate feature unstable_elicitation only.
impl IntoV1 for BooleanPropertySchema
Available on crate feature
unstable_elicitation only.Source§impl IntoV1 for CancelNotification
impl IntoV1 for CancelNotification
type Output = CancelNotification
Source§impl IntoV1 for ClientCapabilities
impl IntoV1 for ClientCapabilities
type Output = ClientCapabilities
Source§impl IntoV1 for ClientNotification
impl IntoV1 for ClientNotification
type Output = ClientNotification
Source§impl IntoV1 for ClientRequest
impl IntoV1 for ClientRequest
type Output = ClientRequest
Source§impl IntoV1 for ClientResponse
impl IntoV1 for ClientResponse
type Output = ClientResponse
Source§impl IntoV1 for CloseSessionRequest
impl IntoV1 for CloseSessionRequest
type Output = CloseSessionRequest
Source§impl IntoV1 for CloseSessionResponse
impl IntoV1 for CloseSessionResponse
Source§impl IntoV1 for CompleteElicitationNotification
Available on crate feature unstable_elicitation only.
impl IntoV1 for CompleteElicitationNotification
Available on crate feature
unstable_elicitation only.Source§impl IntoV1 for ConfigOptionUpdate
impl IntoV1 for ConfigOptionUpdate
type Output = ConfigOptionUpdate
Source§impl IntoV1 for ConnectMcpRequest
Available on crate feature unstable_mcp_over_acp only.
impl IntoV1 for ConnectMcpRequest
Available on crate feature
unstable_mcp_over_acp only.type Output = ConnectMcpRequest
Source§impl IntoV1 for ConnectMcpResponse
Available on crate feature unstable_mcp_over_acp only.
impl IntoV1 for ConnectMcpResponse
Available on crate feature
unstable_mcp_over_acp only.type Output = ConnectMcpResponse
Source§impl IntoV1 for ContentBlock
impl IntoV1 for ContentBlock
type Output = ContentBlock
Source§impl IntoV1 for ContentChunk
impl IntoV1 for ContentChunk
type Output = ContentChunk
Source§impl IntoV1 for CreateElicitationRequest
Available on crate feature unstable_elicitation only.
impl IntoV1 for CreateElicitationRequest
Available on crate feature
unstable_elicitation only.Source§impl IntoV1 for CreateElicitationResponse
Available on crate feature unstable_elicitation only.
impl IntoV1 for CreateElicitationResponse
Available on crate feature
unstable_elicitation only.Source§impl IntoV1 for DeleteSessionRequest
impl IntoV1 for DeleteSessionRequest
Source§impl IntoV1 for DeleteSessionResponse
impl IntoV1 for DeleteSessionResponse
Source§impl IntoV1 for DisconnectMcpRequest
Available on crate feature unstable_mcp_over_acp only.
impl IntoV1 for DisconnectMcpRequest
Available on crate feature
unstable_mcp_over_acp only.Source§impl IntoV1 for DisconnectMcpResponse
Available on crate feature unstable_mcp_over_acp only.
impl IntoV1 for DisconnectMcpResponse
Available on crate feature
unstable_mcp_over_acp only.Source§impl IntoV1 for ElicitationAcceptAction
Available on crate feature unstable_elicitation only.
impl IntoV1 for ElicitationAcceptAction
Available on crate feature
unstable_elicitation only.Source§impl IntoV1 for ElicitationAction
Available on crate feature unstable_elicitation only.
impl IntoV1 for ElicitationAction
Available on crate feature
unstable_elicitation only.type Output = ElicitationAction
Source§impl IntoV1 for ElicitationCapabilities
Available on crate feature unstable_elicitation only.
impl IntoV1 for ElicitationCapabilities
Available on crate feature
unstable_elicitation only.Source§impl IntoV1 for ElicitationContentValue
Available on crate feature unstable_elicitation only.
impl IntoV1 for ElicitationContentValue
Available on crate feature
unstable_elicitation only.Source§impl IntoV1 for ElicitationFormCapabilities
Available on crate feature unstable_elicitation only.
impl IntoV1 for ElicitationFormCapabilities
Available on crate feature
unstable_elicitation only.Source§impl IntoV1 for ElicitationFormMode
Available on crate feature unstable_elicitation only.
impl IntoV1 for ElicitationFormMode
Available on crate feature
unstable_elicitation only.type Output = ElicitationFormMode
Source§impl IntoV1 for ElicitationId
Available on crate feature unstable_elicitation only.
impl IntoV1 for ElicitationId
Available on crate feature
unstable_elicitation only.type Output = ElicitationId
Source§impl IntoV1 for ElicitationMode
Available on crate feature unstable_elicitation only.
impl IntoV1 for ElicitationMode
Available on crate feature
unstable_elicitation only.type Output = ElicitationMode
Source§impl IntoV1 for ElicitationPropertySchema
Available on crate feature unstable_elicitation only.
impl IntoV1 for ElicitationPropertySchema
Available on crate feature
unstable_elicitation only.Source§impl IntoV1 for ElicitationRequestScope
Available on crate feature unstable_elicitation only.
impl IntoV1 for ElicitationRequestScope
Available on crate feature
unstable_elicitation only.Source§impl IntoV1 for ElicitationSchema
Available on crate feature unstable_elicitation only.
impl IntoV1 for ElicitationSchema
Available on crate feature
unstable_elicitation only.type Output = ElicitationSchema
Source§impl IntoV1 for ElicitationSchemaType
Available on crate feature unstable_elicitation only.
impl IntoV1 for ElicitationSchemaType
Available on crate feature
unstable_elicitation only.Source§impl IntoV1 for ElicitationScope
Available on crate feature unstable_elicitation only.
impl IntoV1 for ElicitationScope
Available on crate feature
unstable_elicitation only.type Output = ElicitationScope
Source§impl IntoV1 for ElicitationSessionScope
Available on crate feature unstable_elicitation only.
impl IntoV1 for ElicitationSessionScope
Available on crate feature
unstable_elicitation only.Source§impl IntoV1 for ElicitationStringType
Available on crate feature unstable_elicitation only.
impl IntoV1 for ElicitationStringType
Available on crate feature
unstable_elicitation only.Source§impl IntoV1 for ElicitationUrlCapabilities
Available on crate feature unstable_elicitation only.
impl IntoV1 for ElicitationUrlCapabilities
Available on crate feature
unstable_elicitation only.Source§impl IntoV1 for ElicitationUrlMode
Available on crate feature unstable_elicitation only.
impl IntoV1 for ElicitationUrlMode
Available on crate feature
unstable_elicitation only.type Output = ElicitationUrlMode
Source§impl IntoV1 for ElicitationUrlOnlyMode
Available on crate feature unstable_elicitation only.
impl IntoV1 for ElicitationUrlOnlyMode
Available on crate feature
unstable_elicitation only.Source§impl IntoV1 for EmbeddedResource
impl IntoV1 for EmbeddedResource
type Output = EmbeddedResource
Source§impl IntoV1 for EnumOption
Available on crate feature unstable_elicitation only.
impl IntoV1 for EnumOption
Available on crate feature
unstable_elicitation only.type Output = EnumOption
Source§impl IntoV1 for EnvVariable
impl IntoV1 for EnvVariable
type Output = EnvVariable
Source§impl IntoV1 for ExtNotification
impl IntoV1 for ExtNotification
type Output = ExtNotification
Source§impl IntoV1 for ExtRequest
impl IntoV1 for ExtRequest
type Output = ExtRequest
Source§impl IntoV1 for ExtResponse
impl IntoV1 for ExtResponse
type Output = ExtResponse
Source§impl IntoV1 for ForkSessionRequest
Available on crate feature unstable_session_fork only.
impl IntoV1 for ForkSessionRequest
Available on crate feature
unstable_session_fork only.type Output = ForkSessionRequest
Source§impl IntoV1 for ForkSessionResponse
Available on crate feature unstable_session_fork only.
impl IntoV1 for ForkSessionResponse
Available on crate feature
unstable_session_fork only.type Output = ForkSessionResponse
Source§impl IntoV1 for HttpHeader
impl IntoV1 for HttpHeader
type Output = HttpHeader
Source§impl IntoV1 for ImageContent
impl IntoV1 for ImageContent
type Output = ImageContent
Source§impl IntoV1 for Implementation
impl IntoV1 for Implementation
type Output = Implementation
Source§impl IntoV1 for InitializeRequest
impl IntoV1 for InitializeRequest
type Output = InitializeRequest
Source§impl IntoV1 for InitializeResponse
impl IntoV1 for InitializeResponse
type Output = InitializeResponse
Source§impl IntoV1 for IntegerPropertySchema
Available on crate feature unstable_elicitation only.
impl IntoV1 for IntegerPropertySchema
Available on crate feature
unstable_elicitation only.Source§impl IntoV1 for ListSessionsRequest
impl IntoV1 for ListSessionsRequest
type Output = ListSessionsRequest
Source§impl IntoV1 for ListSessionsResponse
impl IntoV1 for ListSessionsResponse
Source§impl IntoV1 for LoadSessionRequest
impl IntoV1 for LoadSessionRequest
type Output = LoadSessionRequest
Source§impl IntoV1 for LoadSessionResponse
impl IntoV1 for LoadSessionResponse
type Output = LoadSessionResponse
Source§impl IntoV1 for LogoutCapabilities
impl IntoV1 for LogoutCapabilities
type Output = LogoutCapabilities
Source§impl IntoV1 for LogoutRequest
impl IntoV1 for LogoutRequest
type Output = LogoutRequest
Source§impl IntoV1 for LogoutResponse
impl IntoV1 for LogoutResponse
type Output = LogoutResponse
Source§impl IntoV1 for McpCapabilities
impl IntoV1 for McpCapabilities
type Output = McpCapabilities
Source§impl IntoV1 for McpConnectionId
Available on crate feature unstable_mcp_over_acp only.
impl IntoV1 for McpConnectionId
Available on crate feature
unstable_mcp_over_acp only.type Output = McpConnectionId
Source§impl IntoV1 for McpServerAcp
Available on crate feature unstable_mcp_over_acp only.
impl IntoV1 for McpServerAcp
Available on crate feature
unstable_mcp_over_acp only.type Output = McpServerAcp
Source§impl IntoV1 for McpServerAcpId
Available on crate feature unstable_mcp_over_acp only.
impl IntoV1 for McpServerAcpId
Available on crate feature
unstable_mcp_over_acp only.type Output = McpServerAcpId
Source§impl IntoV1 for McpServerHttp
impl IntoV1 for McpServerHttp
type Output = McpServerHttp
Source§impl IntoV1 for McpServerStdio
impl IntoV1 for McpServerStdio
type Output = McpServerStdio
Source§impl IntoV1 for MessageMcpNotification
Available on crate feature unstable_mcp_over_acp only.
impl IntoV1 for MessageMcpNotification
Available on crate feature
unstable_mcp_over_acp only.Source§impl IntoV1 for MessageMcpRequest
Available on crate feature unstable_mcp_over_acp only.
impl IntoV1 for MessageMcpRequest
Available on crate feature
unstable_mcp_over_acp only.type Output = MessageMcpRequest
Source§impl IntoV1 for MessageMcpResponse
Available on crate feature unstable_mcp_over_acp only.
impl IntoV1 for MessageMcpResponse
Available on crate feature
unstable_mcp_over_acp only.type Output = MessageMcpResponse
Source§impl IntoV1 for MultiSelectItems
Available on crate feature unstable_elicitation only.
impl IntoV1 for MultiSelectItems
Available on crate feature
unstable_elicitation only.type Output = MultiSelectItems
Source§impl IntoV1 for MultiSelectPropertySchema
Available on crate feature unstable_elicitation only.
impl IntoV1 for MultiSelectPropertySchema
Available on crate feature
unstable_elicitation only.Source§impl IntoV1 for NewSessionRequest
impl IntoV1 for NewSessionRequest
type Output = NewSessionRequest
Source§impl IntoV1 for NewSessionResponse
impl IntoV1 for NewSessionResponse
type Output = NewSessionResponse
Source§impl IntoV1 for NumberPropertySchema
Available on crate feature unstable_elicitation only.
impl IntoV1 for NumberPropertySchema
Available on crate feature
unstable_elicitation only.Source§impl IntoV1 for PermissionOption
impl IntoV1 for PermissionOption
type Output = PermissionOption
Source§impl IntoV1 for PermissionOptionId
impl IntoV1 for PermissionOptionId
type Output = PermissionOptionId
Source§impl IntoV1 for PermissionOptionKind
impl IntoV1 for PermissionOptionKind
Source§impl IntoV1 for PlanEntryPriority
impl IntoV1 for PlanEntryPriority
type Output = PlanEntryPriority
Source§impl IntoV1 for PlanEntryStatus
impl IntoV1 for PlanEntryStatus
type Output = PlanEntryStatus
Source§impl IntoV1 for PlanUpdate
Available on non-crate feature unstable_plan_operations only.
impl IntoV1 for PlanUpdate
Available on non-crate feature
unstable_plan_operations only.Source§impl IntoV1 for PromptCapabilities
impl IntoV1 for PromptCapabilities
type Output = PromptCapabilities
Source§impl IntoV1 for PromptRequest
impl IntoV1 for PromptRequest
type Output = PromptRequest
Source§impl IntoV1 for PromptResponse
impl IntoV1 for PromptResponse
type Output = PromptResponse
Source§impl IntoV1 for ProtocolVersion
impl IntoV1 for ProtocolVersion
type Output = ProtocolVersion
Source§impl IntoV1 for ResourceLink
impl IntoV1 for ResourceLink
type Output = ResourceLink
Source§impl IntoV1 for ResumeSessionRequest
impl IntoV1 for ResumeSessionRequest
Source§impl IntoV1 for ResumeSessionResponse
impl IntoV1 for ResumeSessionResponse
Source§impl IntoV1 for SessionCapabilities
impl IntoV1 for SessionCapabilities
type Output = SessionCapabilities
Source§impl IntoV1 for SessionConfigBoolean
Available on crate feature unstable_boolean_config only.
impl IntoV1 for SessionConfigBoolean
Available on crate feature
unstable_boolean_config only.Source§impl IntoV1 for SessionConfigGroupId
impl IntoV1 for SessionConfigGroupId
Source§impl IntoV1 for SessionConfigId
impl IntoV1 for SessionConfigId
type Output = SessionConfigId
Source§impl IntoV1 for SessionConfigKind
impl IntoV1 for SessionConfigKind
type Output = SessionConfigKind
Source§impl IntoV1 for SessionConfigOption
impl IntoV1 for SessionConfigOption
type Output = SessionConfigOption
Source§impl IntoV1 for SessionConfigOptionValue
Available on crate feature unstable_boolean_config only.
impl IntoV1 for SessionConfigOptionValue
Available on crate feature
unstable_boolean_config only.Source§impl IntoV1 for SessionConfigSelect
impl IntoV1 for SessionConfigSelect
type Output = SessionConfigSelect
Source§impl IntoV1 for SessionConfigValueId
impl IntoV1 for SessionConfigValueId
Source§impl IntoV1 for SessionForkCapabilities
Available on crate feature unstable_session_fork only.
impl IntoV1 for SessionForkCapabilities
Available on crate feature
unstable_session_fork only.Source§impl IntoV1 for SessionInfo
impl IntoV1 for SessionInfo
type Output = SessionInfo
Source§impl IntoV1 for SessionInfoUpdate
impl IntoV1 for SessionInfoUpdate
type Output = SessionInfoUpdate
Source§impl IntoV1 for SessionListCapabilities
impl IntoV1 for SessionListCapabilities
Source§impl IntoV1 for SessionNotification
impl IntoV1 for SessionNotification
type Output = SessionNotification
Source§impl IntoV1 for SessionUpdate
impl IntoV1 for SessionUpdate
type Output = SessionUpdate
Source§impl IntoV1 for StopReason
impl IntoV1 for StopReason
type Output = StopReason
Source§impl IntoV1 for StringFormat
Available on crate feature unstable_elicitation only.
impl IntoV1 for StringFormat
Available on crate feature
unstable_elicitation only.type Output = StringFormat
Source§impl IntoV1 for StringPropertySchema
Available on crate feature unstable_elicitation only.
impl IntoV1 for StringPropertySchema
Available on crate feature
unstable_elicitation only.Source§impl IntoV1 for TextContent
impl IntoV1 for TextContent
type Output = TextContent
Source§impl IntoV1 for TextResourceContents
impl IntoV1 for TextResourceContents
Source§impl IntoV1 for TitledMultiSelectItems
Available on crate feature unstable_elicitation only.
impl IntoV1 for TitledMultiSelectItems
Available on crate feature
unstable_elicitation only.Source§impl IntoV1 for ToolCallContent
impl IntoV1 for ToolCallContent
type Output = ToolCallContent
Source§impl IntoV1 for ToolCallId
impl IntoV1 for ToolCallId
type Output = ToolCallId
Source§impl IntoV1 for ToolCallLocation
impl IntoV1 for ToolCallLocation
type Output = ToolCallLocation
Source§impl IntoV1 for ToolCallStatus
impl IntoV1 for ToolCallStatus
type Output = ToolCallStatus
Source§impl IntoV1 for ToolCallUpdate
impl IntoV1 for ToolCallUpdate
type Output = ToolCallUpdate
Source§impl IntoV1 for ToolCallUpdateFields
impl IntoV1 for ToolCallUpdateFields
Source§impl IntoV1 for UntitledMultiSelectItems
Available on crate feature unstable_elicitation only.
impl IntoV1 for UntitledMultiSelectItems
Available on crate feature
unstable_elicitation only.Source§impl IntoV1 for UrlElicitationRequiredData
Available on crate feature unstable_elicitation only.
impl IntoV1 for UrlElicitationRequiredData
Available on crate feature
unstable_elicitation only.Source§impl IntoV1 for UrlElicitationRequiredItem
Available on crate feature unstable_elicitation only.
impl IntoV1 for UrlElicitationRequiredItem
Available on crate feature
unstable_elicitation only.