pub struct TopicPartitionKey {
pub topic: String,
pub partition: i32,
}Expand description
Topic Partition Key.
Fields§
§topic: StringTopic name.
partition: i32Partition number.
Implementations§
Trait Implementations§
Source§impl Clone for TopicPartitionKey
impl Clone for TopicPartitionKey
Source§fn clone(&self) -> TopicPartitionKey
fn clone(&self) -> TopicPartitionKey
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 TopicPartitionKey
impl Debug for TopicPartitionKey
Source§impl From<&TopicPartition> for TopicPartitionKey
impl From<&TopicPartition> for TopicPartitionKey
Source§fn from(value: &TopicPartition) -> Self
fn from(value: &TopicPartition) -> Self
Converts to this type from the input type.
Source§impl From<TopicPartition> for TopicPartitionKey
impl From<TopicPartition> for TopicPartitionKey
Source§fn from(value: TopicPartition) -> Self
fn from(value: TopicPartition) -> Self
Converts to this type from the input type.
Source§impl Hash for TopicPartitionKey
impl Hash for TopicPartitionKey
Source§impl Ord for TopicPartitionKey
impl Ord for TopicPartitionKey
Source§fn cmp(&self, other: &TopicPartitionKey) -> Ordering
fn cmp(&self, other: &TopicPartitionKey) -> Ordering
1.21.0 · 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
Source§impl PartialEq for TopicPartitionKey
impl PartialEq for TopicPartitionKey
Source§impl PartialOrd for TopicPartitionKey
impl PartialOrd for TopicPartitionKey
impl Eq for TopicPartitionKey
impl StructuralPartialEq for TopicPartitionKey
Auto Trait Implementations§
impl Freeze for TopicPartitionKey
impl RefUnwindSafe for TopicPartitionKey
impl Send for TopicPartitionKey
impl Sync for TopicPartitionKey
impl Unpin for TopicPartitionKey
impl UnsafeUnpin for TopicPartitionKey
impl UnwindSafe for TopicPartitionKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.