pub struct PartitionKey(pub String);Expand description
Opaque, engine-visible identifier for an independent offset stream (one dense,
monotonic offset space). A Kafka broker maps (topic, partition) onto one of
these; a WAL maps a shard. object-log treats it as an opaque key.
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl Clone for PartitionKey
impl Clone for PartitionKey
Source§impl Debug for PartitionKey
impl Debug for PartitionKey
Source§impl<'de> Deserialize<'de> for PartitionKey
impl<'de> Deserialize<'de> for PartitionKey
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
impl Eq for PartitionKey
Source§impl Hash for PartitionKey
impl Hash for PartitionKey
Source§impl Ord for PartitionKey
impl Ord for PartitionKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PartitionKey
impl PartialEq for PartitionKey
Source§impl PartialOrd for PartitionKey
impl PartialOrd for PartitionKey
Source§impl Serialize for PartitionKey
impl Serialize for PartitionKey
impl StructuralPartialEq for PartitionKey
Auto Trait Implementations§
impl Freeze for PartitionKey
impl RefUnwindSafe for PartitionKey
impl Send for PartitionKey
impl Sync for PartitionKey
impl Unpin for PartitionKey
impl UnsafeUnpin for PartitionKey
impl UnwindSafe for PartitionKey
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