pub enum ShardKeyV1 {
FirstByte,
}Expand description
Deterministic shard-key extraction for PerKey sharding.
Variants§
FirstByte
Use the first byte of the message payload as the key.
Trait Implementations§
Source§impl Clone for ShardKeyV1
impl Clone for ShardKeyV1
Source§fn clone(&self) -> ShardKeyV1
fn clone(&self) -> ShardKeyV1
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 ShardKeyV1
impl Debug for ShardKeyV1
Source§impl<'de> Deserialize<'de> for ShardKeyV1
impl<'de> Deserialize<'de> for ShardKeyV1
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
Source§impl PartialEq for ShardKeyV1
impl PartialEq for ShardKeyV1
Source§impl Serialize for ShardKeyV1
impl Serialize for ShardKeyV1
impl Copy for ShardKeyV1
impl Eq for ShardKeyV1
impl StructuralPartialEq for ShardKeyV1
Auto Trait Implementations§
impl Freeze for ShardKeyV1
impl RefUnwindSafe for ShardKeyV1
impl Send for ShardKeyV1
impl Sync for ShardKeyV1
impl Unpin for ShardKeyV1
impl UnwindSafe for ShardKeyV1
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