pub enum DeduplicationStrategy {
MessageId,
ContentHash,
IdAndContent,
CustomKey(String),
}Expand description
Deduplication strategies
Variants§
MessageId
Use message ID for deduplication
ContentHash
Use content hash for deduplication
IdAndContent
Use both message ID and content hash
CustomKey(String)
Use custom key provided in message
Trait Implementations§
Source§impl Clone for DeduplicationStrategy
impl Clone for DeduplicationStrategy
Source§fn clone(&self) -> DeduplicationStrategy
fn clone(&self) -> DeduplicationStrategy
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 moreSource§impl Debug for DeduplicationStrategy
impl Debug for DeduplicationStrategy
Source§impl<'de> Deserialize<'de> for DeduplicationStrategy
impl<'de> Deserialize<'de> for DeduplicationStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DeduplicationStrategy
impl RefUnwindSafe for DeduplicationStrategy
impl Send for DeduplicationStrategy
impl Sync for DeduplicationStrategy
impl Unpin for DeduplicationStrategy
impl UnwindSafe for DeduplicationStrategy
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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