pub trait Digestable<F, T, S, B>{
type Src: WireSource;
type Error;
// Required method
fn digest_into<Sch, A>(
&self,
builder: DiffSetBuilder<F, T, S, B>,
schema: &Sch,
adapter: &A,
) -> Result<DiffSetBuilder<F, T, S, B>, Self::Error>
where Sch: WireSchema<Self::Src, Table = T>,
A: WireAdapter<Self::Src, S, B>;
}Expand description
One CDC wire event digested via DiffSetBuilder::digest.
Implemented in-crate for pg_walstream::EventType, wal2json::MessageV2,
wal2json::ChangeV1, and maxwell::Message (each times both formats).
Required Associated Types§
Sourcetype Src: WireSource
type Src: WireSource
Wire source this event came from.
Required Methods§
Sourcefn digest_into<Sch, A>(
&self,
builder: DiffSetBuilder<F, T, S, B>,
schema: &Sch,
adapter: &A,
) -> Result<DiffSetBuilder<F, T, S, B>, Self::Error>
fn digest_into<Sch, A>( &self, builder: DiffSetBuilder<F, T, S, B>, schema: &Sch, adapter: &A, ) -> Result<DiffSetBuilder<F, T, S, B>, Self::Error>
Fold this event into builder, resolving affected tables via schema
and decoding column payloads via adapter.
§Errors
Any per-source ConversionError.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".