Skip to main content

IntoV1

Trait IntoV1 

Source
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§

Source

type Output

The corresponding v1 type.

Required Methods§

Source

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§

Source§

impl IntoV1 for &'static str

Source§

type Output = &'static str

Source§

fn into_v1( self, ) -> Result<<&'static str as IntoV1>::Output, ProtocolConversionError>

Source§

impl IntoV1 for Arc<RawValue>

Source§

impl IntoV1 for Arc<str>

Source§

impl IntoV1 for Map<String, Value>

Source§

impl IntoV1 for PathBuf

Source§

impl IntoV1 for String

Source§

impl IntoV1 for Value

Source§

impl IntoV1 for bool

Source§

impl IntoV1 for f32

Source§

impl IntoV1 for f64

Source§

impl IntoV1 for i8

Source§

impl IntoV1 for i16

Source§

impl IntoV1 for i32

Source§

impl IntoV1 for i64

Source§

impl IntoV1 for isize

Source§

impl IntoV1 for u8

Source§

impl IntoV1 for u16

Source§

impl IntoV1 for u32

Source§

impl IntoV1 for u64

Source§

impl IntoV1 for usize

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§

Source§

impl IntoV1 for AgentAuthCapabilities

Source§

impl IntoV1 for AgentCapabilities

Source§

impl IntoV1 for AgentNotification

Source§

impl IntoV1 for AgentRequest

Source§

impl IntoV1 for AgentResponse

Source§

impl IntoV1 for Annotations

Source§

impl IntoV1 for AudioContent

Source§

impl IntoV1 for AuthCapabilities

Available on crate feature unstable_auth_methods only.
Source§

impl IntoV1 for AuthEnvVar

Available on crate feature unstable_auth_methods only.
Source§

impl IntoV1 for AuthMethod

Source§

impl IntoV1 for AuthMethodAgent

Source§

impl IntoV1 for AuthMethodEnvVar

Available on crate feature unstable_auth_methods only.
Source§

impl IntoV1 for AuthMethodId

Source§

impl IntoV1 for AuthMethodTerminal

Available on crate feature unstable_auth_methods only.
Source§

impl IntoV1 for AuthenticateRequest

Source§

impl IntoV1 for AuthenticateResponse

Source§

impl IntoV1 for AvailableCommand

Source§

impl IntoV1 for AvailableCommandInput

Source§

impl IntoV1 for AvailableCommandsUpdate

Source§

impl IntoV1 for BlobResourceContents

Source§

impl IntoV1 for BooleanPropertySchema

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for CancelNotification

Source§

impl IntoV1 for ClientCapabilities

Source§

impl IntoV1 for ClientNotification

Source§

impl IntoV1 for ClientRequest

Source§

impl IntoV1 for ClientResponse

Source§

impl IntoV1 for CloseSessionRequest

Source§

impl IntoV1 for CloseSessionResponse

Source§

impl IntoV1 for CompleteElicitationNotification

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for ConfigOptionUpdate

Source§

impl IntoV1 for ConnectMcpRequest

Available on crate feature unstable_mcp_over_acp only.
Source§

impl IntoV1 for ConnectMcpResponse

Available on crate feature unstable_mcp_over_acp only.
Source§

impl IntoV1 for Content

Source§

impl IntoV1 for ContentBlock

Source§

impl IntoV1 for ContentChunk

Source§

impl IntoV1 for Cost

Source§

impl IntoV1 for CreateElicitationRequest

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for CreateElicitationResponse

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for DeleteSessionRequest

Source§

impl IntoV1 for DeleteSessionResponse

Source§

impl IntoV1 for Diff

Source§

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.
Source§

impl IntoV1 for ElicitationAcceptAction

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for ElicitationAction

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for ElicitationCapabilities

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for ElicitationContentValue

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for ElicitationFormCapabilities

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for ElicitationFormMode

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for ElicitationId

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for ElicitationMode

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for ElicitationPropertySchema

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for ElicitationRequestScope

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for ElicitationSchema

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for ElicitationSchemaType

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for ElicitationScope

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for ElicitationSessionScope

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for ElicitationStringType

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for ElicitationUrlCapabilities

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for ElicitationUrlMode

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for ElicitationUrlOnlyMode

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for EmbeddedResource

Source§

impl IntoV1 for EmbeddedResourceResource

Source§

impl IntoV1 for EnumOption

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for EnvVariable

Source§

impl IntoV1 for Error

Source§

impl IntoV1 for ErrorCode

Source§

impl IntoV1 for ExtNotification

Source§

impl IntoV1 for ExtRequest

Source§

impl IntoV1 for ExtResponse

Source§

impl IntoV1 for ForkSessionRequest

Available on crate feature unstable_session_fork only.
Source§

impl IntoV1 for ForkSessionResponse

Available on crate feature unstable_session_fork only.
Source§

impl IntoV1 for HttpHeader

Source§

impl IntoV1 for ImageContent

Source§

impl IntoV1 for Implementation

Source§

impl IntoV1 for InitializeRequest

Source§

impl IntoV1 for InitializeResponse

Source§

impl IntoV1 for IntegerPropertySchema

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for ListSessionsRequest

Source§

impl IntoV1 for ListSessionsResponse

Source§

impl IntoV1 for LoadSessionRequest

Source§

impl IntoV1 for LoadSessionResponse

Source§

impl IntoV1 for LogoutCapabilities

Source§

impl IntoV1 for LogoutRequest

Source§

impl IntoV1 for LogoutResponse

Source§

impl IntoV1 for McpCapabilities

Source§

impl IntoV1 for McpConnectionId

Available on crate feature unstable_mcp_over_acp only.
Source§

impl IntoV1 for McpServer

Source§

impl IntoV1 for McpServerAcp

Available on crate feature unstable_mcp_over_acp only.
Source§

impl IntoV1 for McpServerAcpId

Available on crate feature unstable_mcp_over_acp only.
Source§

impl IntoV1 for McpServerHttp

Source§

impl IntoV1 for McpServerStdio

Source§

impl IntoV1 for MessageId

Source§

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.
Source§

impl IntoV1 for MessageMcpResponse

Available on crate feature unstable_mcp_over_acp only.
Source§

impl IntoV1 for MultiSelectItems

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for MultiSelectPropertySchema

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for NewSessionRequest

Source§

impl IntoV1 for NewSessionResponse

Source§

impl IntoV1 for NumberPropertySchema

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for PermissionOption

Source§

impl IntoV1 for PermissionOptionId

Source§

impl IntoV1 for PermissionOptionKind

Source§

impl IntoV1 for PlanEntry

Source§

impl IntoV1 for PlanEntryPriority

Source§

impl IntoV1 for PlanEntryStatus

Source§

impl IntoV1 for PlanUpdate

Available on non-crate feature unstable_plan_operations only.
Source§

impl IntoV1 for PromptCapabilities

Source§

impl IntoV1 for PromptRequest

Source§

impl IntoV1 for PromptResponse

Source§

impl IntoV1 for ProtocolVersion

Source§

impl IntoV1 for RequestId

Source§

impl IntoV1 for RequestPermissionOutcome

Source§

impl IntoV1 for RequestPermissionRequest

Source§

impl IntoV1 for RequestPermissionResponse

Source§

impl IntoV1 for ResumeSessionRequest

Source§

impl IntoV1 for ResumeSessionResponse

Source§

impl IntoV1 for Role

Source§

impl IntoV1 for SelectedPermissionOutcome

Source§

impl IntoV1 for SessionAdditionalDirectoriesCapabilities

Source§

impl IntoV1 for SessionCapabilities

Source§

impl IntoV1 for SessionCloseCapabilities

Source§

impl IntoV1 for SessionConfigBoolean

Available on crate feature unstable_boolean_config only.
Source§

impl IntoV1 for SessionConfigGroupId

Source§

impl IntoV1 for SessionConfigId

Source§

impl IntoV1 for SessionConfigKind

Source§

impl IntoV1 for SessionConfigOption

Source§

impl IntoV1 for SessionConfigOptionCategory

Source§

impl IntoV1 for SessionConfigOptionValue

Available on crate feature unstable_boolean_config only.
Source§

impl IntoV1 for SessionConfigSelect

Source§

impl IntoV1 for SessionConfigSelectGroup

Source§

impl IntoV1 for SessionConfigSelectOption

Source§

impl IntoV1 for SessionConfigSelectOptions

Source§

impl IntoV1 for SessionConfigValueId

Source§

impl IntoV1 for SessionDeleteCapabilities

Source§

impl IntoV1 for SessionForkCapabilities

Available on crate feature unstable_session_fork only.
Source§

impl IntoV1 for SessionId

Source§

impl IntoV1 for SessionInfo

Source§

impl IntoV1 for SessionInfoUpdate

Source§

impl IntoV1 for SessionListCapabilities

Source§

impl IntoV1 for SessionNotification

Source§

impl IntoV1 for SessionResumeCapabilities

Source§

impl IntoV1 for SessionUpdate

Source§

impl IntoV1 for SetSessionConfigOptionRequest

Source§

impl IntoV1 for SetSessionConfigOptionResponse

Source§

impl IntoV1 for StopReason

Source§

impl IntoV1 for StringFormat

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for StringPropertySchema

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for TextContent

Source§

impl IntoV1 for TextResourceContents

Source§

impl IntoV1 for TitledMultiSelectItems

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for ToolCall

Source§

impl IntoV1 for ToolCallContent

Source§

impl IntoV1 for ToolCallId

Source§

impl IntoV1 for ToolCallLocation

Source§

impl IntoV1 for ToolCallStatus

Source§

impl IntoV1 for ToolCallUpdate

Source§

impl IntoV1 for ToolCallUpdateFields

Source§

impl IntoV1 for ToolKind

Source§

impl IntoV1 for UnstructuredCommandInput

Source§

impl IntoV1 for UntitledMultiSelectItems

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for UrlElicitationRequiredData

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for UrlElicitationRequiredItem

Available on crate feature unstable_elicitation only.
Source§

impl IntoV1 for Usage

Available on crate feature unstable_end_turn_token_usage only.
Source§

impl IntoV1 for UsageUpdate

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<Response> IntoV1 for Response<Response, Error>
where Response: IntoV1,

Source§

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

Source§

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