pub trait DecodeMessage: Sized {
type Decoded: TryFrom<Self, Error = ConversionError>;
// Provided method
fn decode_fields(self) -> Result<Self::Decoded, ConversionError> { ... }
}Expand description
Decodes a wire message or oneof without constructing its verified domain counterpart.
Derived implementations produce schema-shaped records. Atomic messages can select an existing
deserialized type instead, using its TryFrom implementation. Such adapters should check the
representation only, leaving application invariants to Verify or VerifyWith.
Use DecodeMessageExt to combine field decoding with an explicit construction capability.
Required Associated Types§
type Decoded: TryFrom<Self, Error = ConversionError>
Provided Methods§
fn decode_fields(self) -> Result<Self::Decoded, ConversionError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".