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§
- Protocol
Conversion Error - 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.