pub struct ConsumerProtocolSubscription {
pub topics: Vec<String>,
pub user_data: Option<Vec<u8>>,
pub owned_partitions: Vec<TopicPartition>,
}Expand description
ConsumerProtocolSubscription, version 1.
Fields§
§topics: Vec<String>The topics that the member wants to consume.
user_data: Option<Vec<u8>>User data that will be passed back to the consumer.
owned_partitions: Vec<TopicPartition>The partitions that the member owns.
Implementations§
Trait Implementations§
Source§impl Clone for ConsumerProtocolSubscription
impl Clone for ConsumerProtocolSubscription
Source§fn clone(&self) -> ConsumerProtocolSubscription
fn clone(&self) -> ConsumerProtocolSubscription
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 ConsumerProtocolSubscription
impl Debug for ConsumerProtocolSubscription
Source§impl<'de> Deserialize<'de> for ConsumerProtocolSubscription
impl<'de> Deserialize<'de> for ConsumerProtocolSubscription
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 ConsumerProtocolSubscription
impl PartialEq for ConsumerProtocolSubscription
Source§fn eq(&self, other: &ConsumerProtocolSubscription) -> bool
fn eq(&self, other: &ConsumerProtocolSubscription) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Data for ConsumerProtocolSubscription
impl StructuralPartialEq for ConsumerProtocolSubscription
Auto Trait Implementations§
impl Freeze for ConsumerProtocolSubscription
impl RefUnwindSafe for ConsumerProtocolSubscription
impl Send for ConsumerProtocolSubscription
impl Sync for ConsumerProtocolSubscription
impl Unpin for ConsumerProtocolSubscription
impl UnwindSafe for ConsumerProtocolSubscription
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