pub enum KeyStrategy {
TableAndPrimaryKey,
TableAndAllColumns,
TransactionPosition,
Custom(fn(&CdcEvent) -> String),
}Expand description
Strategy for extracting deduplication keys from events.
Variants§
TableAndPrimaryKey
Use table name + primary key columns
TableAndAllColumns
Use table + all column values
TransactionPosition
Use transaction ID + LSN
Custom(fn(&CdcEvent) -> String)
Custom key extractor
Implementations§
Source§impl KeyStrategy
impl KeyStrategy
Sourcepub fn extract_key(&self, event: &CdcEvent) -> String
pub fn extract_key(&self, event: &CdcEvent) -> String
Extract key from event.
Trait Implementations§
Source§impl Clone for KeyStrategy
impl Clone for KeyStrategy
Source§fn clone(&self) -> KeyStrategy
fn clone(&self) -> KeyStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for KeyStrategy
impl RefUnwindSafe for KeyStrategy
impl Send for KeyStrategy
impl Sync for KeyStrategy
impl Unpin for KeyStrategy
impl UnsafeUnpin for KeyStrategy
impl UnwindSafe for KeyStrategy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more