#[non_exhaustive]pub struct TopicPartition {
pub topic: TopicName,
pub partitions: Vec<i32>,
}
Expand description
Valid versions: 0-3
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.topic: TopicName
Supported API versions: 0-3
partitions: Vec<i32>
Supported API versions: 0-3
Implementations§
Source§impl TopicPartition
impl TopicPartition
Sourcepub fn with_topic(self, value: TopicName) -> Self
pub fn with_topic(self, value: TopicName) -> Self
Sets topic
to the passed value.
Supported API versions: 0-3
Sourcepub fn with_partitions(self, value: Vec<i32>) -> Self
pub fn with_partitions(self, value: Vec<i32>) -> Self
Sets partitions
to the passed value.
Supported API versions: 0-3
Trait Implementations§
Source§impl Clone for TopicPartition
impl Clone for TopicPartition
Source§fn clone(&self) -> TopicPartition
fn clone(&self) -> TopicPartition
Returns a copy 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 TopicPartition
impl Debug for TopicPartition
Source§impl Decodable for TopicPartition
impl Decodable for TopicPartition
Source§impl Default for TopicPartition
impl Default for TopicPartition
Source§impl Encodable for TopicPartition
impl Encodable for TopicPartition
Source§impl Message for TopicPartition
impl Message for TopicPartition
Source§const VERSIONS: VersionRange
const VERSIONS: VersionRange
The valid versions for this message.
Source§const DEPRECATED_VERSIONS: Option<VersionRange> = None
const DEPRECATED_VERSIONS: Option<VersionRange> = None
The deprecated versions for this message.
Source§impl PartialEq for TopicPartition
impl PartialEq for TopicPartition
impl StructuralPartialEq for TopicPartition
Auto Trait Implementations§
impl !Freeze for TopicPartition
impl RefUnwindSafe for TopicPartition
impl Send for TopicPartition
impl Sync for TopicPartition
impl Unpin for TopicPartition
impl UnwindSafe for TopicPartition
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