Skip to main content

Module conversion

Module conversion 

Source
Available on crate feature unstable_protocol_v2 only.
Expand description

Explicit conversion helpers for experimenting with ACP v2 while SDKs still speak v1.

The conversions below intentionally move values field-by-field and variant-by-variant instead of serializing through JSON so v2 shape changes have obvious edit points.

Structs§

ProtocolConversionError
Error returned when converting between v1 and v2 protocol type namespaces fails.

Traits§

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

Functions§

v1_to_v2
Converts a v1 value into the corresponding v2 draft value type.
v2_to_v1
Converts a v2 draft value into the corresponding v1 value type.

Type Aliases§

Result
Result type returned by protocol conversion helpers.