[][src]Trait nakadion::publisher::partitioner::PartitionKeyExtractable

pub trait PartitionKeyExtractable {
    type Key: Hash;
    fn partition_key(&self) -> Self::Key;
}

Can return a key for manual partitioning

Associated Types

type Key: Hash

Loading content...

Required methods

fn partition_key(&self) -> Self::Key

Returns the key for partitioning

Loading content...

Implementations on Foreign Types

impl<D> PartitionKeyExtractable for BusinessEventPub<D> where
    D: PartitionKeyExtractable
[src]

type Key = D::Key

impl<D> PartitionKeyExtractable for DataChangeEventPub<D> where
    D: PartitionKeyExtractable
[src]

type Key = D::Key

Loading content...

Implementors

Loading content...