pub fn provide_default_metadata(envelope: &SourceEnvelope, encoding: &DataEncoding) -> bool {
    let is_avro = matches!(encoding, DataEncoding::Avro(_));
    let is_stateless_dbz = matches!(envelope, SourceEnvelope::Debezium(_, DebeziumMode::Plain));

    !is_avro && !is_stateless_dbz
}
/// Legacy logic included something like an offset into almost data streams
///
/// Eventually we will require `INCLUDE <metadata>` for everything.
Legacy logic included something like an offset into almost data streams
Eventually we will require `INCLUDE ` for everything.
Legacy logic included something like an offset into almost data streams Eventually we will require ` INCLUDE ` for everything .
pub fn provide_default_metadata(envelope: &SourceEnvelope, encoding: &DataEncoding) -> bool {
    let is_avro = matches!(encoding, DataEncoding::Avro(_));
    let is_stateless_dbz = matches!(envelope, SourceEnvelope::Debezium(_, DebeziumMode::Plain));
    !is_avro && !is_stateless_dbz
}
pub fn provide_default_metadata ( envelope : & SourceEnvelope , encoding : & DataEncoding ) -> bool { let is_avro = matches ! ( encoding DataEncoding Avro ( ) ) ; let is_stateless_dbz = matches ! ( envelope SourceEnvelope Debezium ( DebeziumMode Plain ) ) ; ! is_avro && ! is_stateless_dbz }
Legacy logic included something like an offset into almost data streams
Eventually we will require `INCLUDE <metadata>` for everything.
Legacy logic included something like an offset into almost data streams Eventually we will require ` INCLUDE <metadata > ` for everything .
envelope
&SourceEnvelope
encoding
&DataEncoding
envelope
&SourceEnvelope
encoding
&DataEncoding