pub trait SourceRecordDecoder: Send + Sync {
// Required methods
fn decoder_kind(&self) -> SourceDecoderKindV1;
fn decode(
&self,
record: &RawSourceRecordV1,
) -> Result<Vec<DecodedSourceMutationV1>, SourceDecodeError>;
}Expand description
Decoder owns strict envelope-to-mutation semantics; it never owns source position.
Required Methods§
fn decoder_kind(&self) -> SourceDecoderKindV1
fn decode( &self, record: &RawSourceRecordV1, ) -> Result<Vec<DecodedSourceMutationV1>, SourceDecodeError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".